Skip to content
animorio
IT
Back to the library

Plant app how it works

Scroll, SVGGSAP, CSS onlyMediumCompressed weight: Demo 11 KBGSAP + ScrollTrigger 45 KBLenis 5.3 KBFreeDownload the zip

Scroll inside the preview

The how it works section of a made-up plant care app, Rootle, on scroll, in the premium style of Dribbble landing pages: on a warm light page, three steps on the left and a phone drawn in CSS on the right. Scrolling down, a thin green line runs along the rail beside the steps; at each step a branch of the line leaves it and touches the phone, the metal frame catches a glint, the phone gives by one pixel and the screen changes with its own transition: the viewfinder with the leaf drawing itself closes like an iris into the ring of the check-up, then the watering plan rises as a sheet and the island opens into the reminder.

The code

A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.

<!doctype html>
<!--
  "Plant app how it works" from Animorio · https://animorio.com
  License: free on your own sites and your clients’ sites, paid work included.
  Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Rootle, how it works</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <!-- the "how it works" section of a made-up plant care app, Rootle, on a warm light page. The stage sticks while you
       scroll: three steps on the left light up one after the other and a thin green line runs down the rail beside
       them; at each step a branch of the line leaves the rail and touches the phone, the frame catches a glint there
       and the screen changes with its own transition: the viewfinder, the health check, the watering plan. -->
  <main>
    <section class="how" data-how>
      <div class="stage" data-stage>
        <div class="light" data-light aria-hidden="true"></div>
        <div class="grain" aria-hidden="true"></div>

        <div class="layout" data-layout>
          <div class="side">
            <p class="kicker">How Rootle works</p>
            <ol class="steps" data-steps>
              <li class="step" data-step>
                <button class="step__btn" type="button" data-go="0">
                  <span class="step__title">Snap a leaf</span>
                  <span class="step__text">Point the camera at any plant. Rootle knows it in a second.</span>
                </button>
                <span class="step__node" data-node aria-hidden="true"></span>
              </li>
              <li class="step" data-step>
                <button class="step__btn" type="button" data-go="1">
                  <span class="step__title">Get a check-up</span>
                  <span class="step__text">Light, water and humidity, read from the leaf itself.</span>
                </button>
                <span class="step__node" data-node aria-hidden="true"></span>
              </li>
              <li class="step" data-step>
                <button class="step__btn" type="button" data-go="2">
                  <span class="step__title">Never forget to water</span>
                  <span class="step__text">A plan that fits the plant, with a nudge on the right day.</span>
                </button>
                <span class="step__node" data-node aria-hidden="true"></span>
              </li>
            </ol>
          </div>

          <div class="phone-wrap" data-phone-wrap>
            <div class="phone" data-phone>
              <span class="phone__key phone__key--a" aria-hidden="true"></span>
              <span class="phone__key phone__key--b" aria-hidden="true"></span>
              <span class="phone__key phone__key--c" aria-hidden="true"></span>
              <span class="phone__glint" data-glint aria-hidden="true"></span>
              <div class="screen" data-screen>
                <div class="status" aria-hidden="true"><b>9:41</b><span class="status__icons"><i></i><i></i><i></i></span></div>
                <div class="island" data-island aria-hidden="true">
                  <div class="note" data-note>
                    <span class="note__mark"><svg viewBox="0 0 16 16"><path d="M8 13.5V7.2M8 9.4C8 6.6 6 4.8 3.4 4.8 3.4 7.6 5.4 9.4 8 9.4zM8 8c0-2.6 1.8-4.4 4.6-4.4C12.6 6.2 10.8 8 8 8z"/></svg></span>
                    <span class="note__text"><b>Water Monstera</b><small>Today, 250 ml</small></span>
                  </div>
                </div>

                <!-- screen one: the viewfinder -->
                <div class="pane pane--cam" data-pane="0">
                  <div class="cam__view">
                    <svg class="leaf" viewBox="0 0 120 140" aria-hidden="true">
                      <path class="leaf__shape" data-leaf pathLength="1" d="M60 10C88 22 112 44 112 72c0 28-22 46-46 46-3 0-5-2-6-5-1 3-3 5-6 5-24 0-46-18-46-46C8 44 32 22 60 10z"/>
                      <path class="leaf__vein" data-vein pathLength="1" d="M60 136V22M60 50 36 39M60 50l24-11M60 72 29 63M60 72l31-9M60 94 35 91M60 94l25-3"/>
                    </svg>
                    <span class="corner corner--tl" data-corner></span>
                    <span class="corner corner--tr" data-corner></span>
                    <span class="corner corner--bl" data-corner></span>
                    <span class="corner corner--br" data-corner></span>
                    <span class="beam" data-beam></span>
                  </div>
                  <p class="cam__tag" data-tag><span>Monstera deliciosa</span><small data-match>98% match</small></p>
                  <div class="shutter" data-shutter><i></i></div>
                </div>

                <!-- screen two: the check-up -->
                <div class="pane pane--check" data-pane="1">
                  <p class="app-title">Monstera</p>
                  <p class="app-sub">Living room, by the window</p>
                  <div class="ring" data-ring>
                    <svg viewBox="0 0 100 100" aria-hidden="true">
                      <circle class="ring__track" cx="50" cy="50" r="42"/>
                      <circle class="ring__fill" data-ring-fill cx="50" cy="50" r="42" pathLength="1"/>
                    </svg>
                    <p class="ring__num"><b data-score>0</b><small>Healthy</small></p>
                  </div>
                  <ul class="meters">
                    <li class="meter" data-meter><span>Light</span><i><em data-bar style="--v:0.74"></em></i><small>Bright</small></li>
                    <li class="meter" data-meter><span>Water</span><i><em data-bar style="--v:0.38"></em></i><small>Low</small></li>
                    <li class="meter" data-meter><span>Humidity</span><i><em data-bar style="--v:0.6"></em></i><small>Good</small></li>
                  </ul>
                </div>

                <!-- screen three: the watering plan, a sheet that rises -->
                <div class="pane pane--plan" data-pane="2">
                  <div class="sheet" data-sheet>
                    <span class="sheet__grip"></span>
                    <p class="sheet__title">Watering plan</p>
                    <p class="sheet__sub">Twice a week, 250 ml</p>
                    <ul class="week" data-week>
                      <li data-day>M</li><li data-day class="on">T</li><li data-day>W</li><li data-day>T</li><li data-day class="on">F</li><li data-day>S</li><li data-day>S</li>
                    </ul>
                    <div class="row">
                      <span>Reminders</span>
                      <span class="toggle" data-toggle><i></i></span>
                    </div>
                    <span class="cta" data-cta>Save plan</span>
                  </div>
                </div>
                <span class="glass" data-glass aria-hidden="true"></span>
              </div>
            </div>
          </div>
        </div>

        <svg class="wire" data-wire aria-hidden="true">
          <path class="wire__rail" data-rail-base/>
          <path class="wire__run" data-rail/>
          <path class="wire__branch" data-branch/>
          <path class="wire__branch" data-branch/>
          <path class="wire__branch" data-branch/>
        </svg>
      </div>
    </section>
    <p class="sr" aria-live="polite" data-live></p>
  </main>

  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/ScrollTrigger.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/lenis@1.3.26/dist/lenis.min.js"></script>
  <script src="script.js"></script>
</body>
</html>

Playground

Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.

47 values to change

Or ask your AI assistant for it

With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:

Take “Plant app how it works” from Animorio and fit it into my site
Platform licenseFree on your sites and your clients’ sites. Want it inside a website builder, a template platform or a client dashboard? There’s a license for agencies and platforms.

What it does

On a warm white page with fine grain and a soft green light behind the phone, on the left there is ‘How Rootle works’ and three steps under it, ‘Snap a leaf’, ‘Get a check-up’ and ‘Never forget to water’, each with a line of text; on the right a phone drawn only in CSS, with a brushed metal frame, side keys, the black island, a sheen on the glass and layered shadows. Between the steps and the phone runs a thin grey rail with three nodes. On arrival the steps rise one after the other, the phone rises on a spring and a green branch leaves the first node and touches the phone: there a light runs along the metal frame, the phone gives by one pixel and springs back, the node fills with green. On the screen, the dark camera viewfinder: the corners close in with a small bounce, the outline of a monstera leaf draws itself and takes a faint green fill, then the veins, and a band of green light scans it up and down; under it the glass label ‘Monstera deliciosa, 98% match’ comes out of a blur. Scrolling down, the green line runs down the rail to the second step, the branch touches the phone with its glint and the viewfinder closes like a round iris towards the middle, uncovering the check-up: ‘Monstera’, the ring filling to 86 with the number counting and ‘Healthy’, and the three bars for light, water and humidity stretching one after the other. At the third step, after another touch, the check-up steps back and darkens as under an iOS sheet, the ‘Watering plan’ sheet rises from the bottom with a slight overshoot, the seven days spring in, Tuesday and Friday light up green with a small knock, the reminders switch flips and at last the black island widens into the notification ‘Water Monstera, Today, 250 ml’. The lit step takes the ink and widens a little on the wdth axis, the ones already done stay halfway. Scrolling back, it all goes back; a click on a step takes the page to that point.

How it works

One number for the scroll

ScrollTrigger with scrub moves a {p} object from 0 to 1 along the whole section. On every update draw() reads p and decides how long the line on the rail is, how much of each branch is drawn and which step is lit: the line between the steps and the branches each have their own stretch of p.

The line in pixels

The rail and the branches are paths in an SVG as big as the stage, written in pixels from the real positions of the nodes and of the phone’s edge (getBoundingClientRect). They draw with stroke-dasharray and stroke-dashoffset on their length, and are measured again on resize and when the fonts are ready.

Screens at a threshold

The scroll only decides which screen shows; the change is timed, with its springs, because a spring driven by the scroll never shows. show(k) takes every part towards its state, so it works forwards and backwards and from any step.

Three different transitions

The viewfinder closes with a clip-path circle going from 150% to 0 towards the ring; the check-up steps back with scale, y, border-radius and a brightness filter as under an iOS sheet; the sheet rises with yPercent on a back.out, and the island widens in width, height and radius into the notification.

The touch on the phone

When a branch reaches the phone, a glint made of a vertical gradient runs along the metal frame at the branch’s height, the phone moves right by 1.4 pixels and comes back on an elastic.out, and the node fills through a --fill variable on a back.out.

The screen in container units

The screen has container-type: size and everything inside is sized in cqw and cqh: so the phone is sized only with min(78vh, 640px, 92vw) and the app inside follows, the same on every screen.

Values to change

NameFileDefaultWhat it changes
RIDEscript.js1How much scroll the three steps take: 2 is twice as long.
SCOREscript.js86The health score the ring fills to.
SPRINGscript.js1How much the sheet and the days overshoot: 0 never.
GLINTscript.js1How bright the glint on the frame is where the line touches it.
SCANscript.js1.6Seconds the beam takes to cross the leaf.
GLOWscript.js1How strong the green light behind the phone is.

Try them in the Playground

When to use it

For the landing page of a mobile app, especially one that explains itself in three gestures (snap, check, get the reminder): the how it works section under the headline, where visitors scroll and watch the app do the three things one after the other. It also fits a gardening app, a health app, a plant shop or a subscription service.

On phones

The same animation with adapted sizes: the phone is sized on the height and on the width (min(78vh, 640px, 92vw)) and the app inside follows in container units; the steps beside it shrink their text with clamp and the rail narrows into the room that is left, so it all fits in the box.

With reduced motion

No long scroll and no movement: the section fades in with the line already fully drawn, the three nodes filled and the screen on the watering plan; a click on a step changes the screen with a fade.

Pitfalls

  • The node positions are measured after the steps’ entrance: measured while the steps are still rising, the branches come out a few pixels below the nodes. They are measured again at the end of the entrance, on resize and when the fonts are ready.
  • GSAP moves .phone-wrap for the entrance and .phone for the knock of the touch: on the same element the second transform would wipe out the first.
  • The viewfinder’s clip-path must be animated between two circles with the same shape (circle(150% at 50% 36%) and circle(0% at 50% 36%)): with different shapes GSAP cannot interpolate them and jumps.

Libraries

GSAP 3.15.0, ScrollTrigger 3.15.0, Lenis 1.3.26, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP + ScrollTrigger 45 KB, Lenis 5.3 KB.

Testing

Tested on 10 November 2026

  • Desktop: Done
  • Phone: Done
  • Reduced motion: Done
  • Safari on iPhone: To do

License

Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.

All animations