
Melting words
Text, Scroll, SVG
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.
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>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
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 siteScrollTrigger 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 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.
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.
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.
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 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.
| Name | File | Default | What it changes |
|---|---|---|---|
RIDE | script.js | 1 | How much scroll the three steps take: 2 is twice as long. |
SCORE | script.js | 86 | The health score the ring fills to. |
SPRING | script.js | 1 | How much the sheet and the days overshoot: 0 never. |
GLINT | script.js | 1 | How bright the glint on the frame is where the line touches it. |
SCAN | script.js | 1.6 | Seconds the beam takes to cross the leaf. |
GLOW | script.js | 1 | How strong the green light behind the phone is. |
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.
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.
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.
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.
Tested on 10 November 2026
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.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.