
The star rating
Ratings, SVG, Hover
The button to order a bouquet from the florist. At rest the disc holds a sprout with a closed bud; pressed, the stem grows, the two leaves open one after the other and the flower blooms petal by petal, then the tag with the price says the bouquet has been sent.
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>
<!--
"Send flowers button" 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>Send flowers button for the florist with the stem that grows and the flower that blooms</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>
<main class="stage">
<!-- a florist's order button: at rest a sprout with a closed bud; pressed, the stem grows, the leaves open one
after the other and the flower blooms petal by petal, then the tag says the bouquet has been sent -->
<button class="fl" type="button" data-fl>
<span class="fl__body" aria-hidden="true"><span class="fl__wash" data-wash></span><span class="fl__light"></span></span>
<span class="fl__edge" aria-hidden="true"></span>
<span class="seat" data-seat aria-hidden="true">
<svg viewBox="0 0 24 24">
<g transform="translate(12 21)">
<path class="seat__soil" d="M-5.500 0h11"></path>
<path class="seat__stem" data-stem pathLength="1" d="M0 0C-1.900 -4.200 1.900 -8 0 -12.400"></path>
<g data-leaf><path class="seat__leaf" d="M0 0C2.300 -2.900 5 -2.400 5.600 -0.600C3.600 0.900 1.400 0.900 0 0Z"></path></g>
<g data-leaf><path class="seat__leaf" d="M0 0C-2.300 -2.900 -5 -2.400 -5.600 -0.600C-3.600 0.900 -1.400 0.900 0 0Z"></path></g>
<g data-head>
<ellipse class="seat__petal" data-petal cy="-3" rx="1.750" ry="2.900"></ellipse>
<ellipse class="seat__petal" data-petal cy="-3" rx="1.750" ry="2.900"></ellipse>
<ellipse class="seat__petal" data-petal cy="-3" rx="1.750" ry="2.900"></ellipse>
<ellipse class="seat__petal" data-petal cy="-3" rx="1.750" ry="2.900"></ellipse>
<ellipse class="seat__petal" data-petal cy="-3" rx="1.750" ry="2.900"></ellipse>
<circle class="seat__heart" data-heart r="1.500"></circle>
</g>
</g>
</svg>
</span>
<span class="label">
<span class="label__main"><span data-word>Send flowers</span></span>
<span class="label__sub"><span data-sub>Seasonal bouquet, same day</span></span>
</span>
<span class="tag" aria-hidden="true"><span data-left></span></span>
</button>
<p class="sr" data-live aria-live="polite"></p>
<svg class="ghost" data-ghost viewBox="0 0 24 24" aria-hidden="true"><path d="M5 3.2 19.2 11l-6.3 1.6-3.3 5.9Z"></path></svg>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.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.
17 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 “Send flowers button” from Animorio and fit it into my siteThe stem’s height, the flower’s opening, the two leaves, the heart and the lean live in one object: GSAP animates the numbers and a single function rewrites the transform attributes, everything drawn around zero.
The stem is uncovered with stroke-dashoffset and the flower’s head sits on the point it has reached (getPointAtLength): so the bud climbs the curve with it.
Closed, the five petals lie on top of each other; opening, they fan out 72 degrees apart, each a little after the one before, with back.out carrying them a touch too far.
| Name | File | Default | What it changes |
|---|---|---|---|
PRICE | script.js | 38 | The bouquet’s price, written in the tag. |
NAME | script.js | "Nora" | Who the flowers go to (made-up name). |
GROW | script.js | 0.9 | How many seconds the stem takes to grow. |
PETALS | script.js | 0.09 | How many seconds pass between one petal and the next. |
ACCENT | script.js | #e8587f | The colour of the petals and of the tint. |
OK | script.js | #2f9d6a | The colour once the bouquet has left. |
HOLD | script.js | 2.6 | On its own: how many seconds the confirmation stays before going back. |
LOOP | script.js | true | Left alone, a pointer tries it by itself. |
On the site of a florist, a plant nursery or a gift shop: on the bouquet of the day, a flower subscription, the Valentine’s or Mother’s Day page.
The same button, as wide as the screen minus the margins; with no pointer there is no light and the flower starts from the tap.
The flower appears already open without growing, the texts change without rolling and the colour cross-fades.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 6.0 KB; the libraries: GSAP 28 KB.
Tested on 16 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.