Skip to content
animorio
IT
All components

Send flowers button

Buttons, Hover, SVGGSAP, CSS onlyMediumCompressed weight: Demo 6.0 KBGSAP 28 KBFreeDownload the zip

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.

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>
<!--
  "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>

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.

17 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 “Send flowers button” 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 black, a light pill 60 pixels high: on the left a white disc with a green sprout and a closed pink bud, in the middle “Send flowers” and below it “Seasonal bouquet, same day”, on the right a tag with the price. On hover the light follows the pointer, the sprout stretches a little and the bud leans towards it. Pressed: a pink tint leaves the disc, the texts roll to “Tying your bouquet”, the stem grows along its curve, the two leaves open as the stem passes them, and at the top the five petals fan out one after the other, a touch too far and then into place, with the yellow heart appearing and the flower’s head nodding. Then everything turns green, the text says “Flowers on the way”, below it “To Nora, today by 6 pm” and the tag rolls to “Sent”. After a few seconds the flower closes again and goes back to a sprout.

How it works

A plant in a few numbers

The 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 flower at the top of the stem

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.

Petal by petal

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.

Values to change

NameFileDefaultWhat it changes
PRICEscript.js38The bouquet’s price, written in the tag.
NAMEscript.js"Nora"Who the flowers go to (made-up name).
GROWscript.js0.9How many seconds the stem takes to grow.
PETALSscript.js0.09How many seconds pass between one petal and the next.
ACCENTscript.js#e8587fThe colour of the petals and of the tint.
OKscript.js#2f9d6aThe colour once the bouquet has left.
HOLDscript.js2.6On its own: how many seconds the confirmation stays before going back.
LOOPscript.jstrueLeft alone, a pointer tries it by itself.

Try them in the Playground

When to use it

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.

On phones

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.

With reduced motion

The flower appears already open without growing, the texts change without rolling and the colour cross-fades.

Pitfalls

  • In the demo the order always succeeds after a fixed time: on a real site the flower blooms when the payment has gone through, and if it fails the plant goes back to a sprout with a message.
  • The leaves are attached to two points of the stem taken with getPointAtLength: change the stem’s curve and they follow by themselves.
  • The disc has hidden overflow: a bigger flower must be scaled down in the viewBox, not allowed past the edge.

Libraries

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.

Testing

Tested on 16 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 components