Skip to content
animorio
IT
All components

Heating boost button

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

The Boost button of a smart home app, which raises the living room heating for half an hour, made of dark cool glass on a near black page, like a Dribbble shot. Pressed, the warmth starts right under the finger and spreads through the glass as two blurred embers, a shimmer of hot air redrawn every frame rises inside it, the flame fills with colour and the room temperature rolls up half a degree at a time, the digits getting bolder as it warms. When it gets there the edge lights up warm, a reflection crosses the glass and the words say Boosted; then it cools down and the digits roll back.

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>
<!--
  "Heating boost 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>The heating Boost button with the glass that warms up</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">
    <!-- the Boost button of a smart home app, made of dark cool glass. Pressed, the warmth starts from under the
         finger and spreads through the glass, a faint heat haze rises inside it, the flame lights up and the room
         temperature rolls up half a degree at a time. When it gets there the glass glows, a reflection crosses it and
         the button says Boosted; then it cools back down to rest -->
    <div class="hb" data-wrap>
      <span class="hb__spill hb__spill--cool" data-spill-cool aria-hidden="true"></span>
      <span class="hb__spill hb__spill--warm" data-spill-warm aria-hidden="true"></span>
      <button class="hb__btn" type="button" data-btn aria-label="Boost heat in the living room for 30 minutes">
        <span class="hb__glass" data-glass>
          <span class="hb__base" aria-hidden="true"></span>
          <span class="hb__heat" aria-hidden="true">
            <span class="hb__ember" data-ember></span>
            <span class="hb__ember hb__ember--b" data-ember-b></span>
          </span>
          <svg class="hb__haze" data-haze aria-hidden="true">
            <defs>
              <linearGradient id="hb-fade" x1="0" y1="1" x2="0" y2="0">
                <stop offset="0" stop-color="#fff" stop-opacity="0"/>
                <stop offset="0.35" stop-color="#fff" stop-opacity="1"/>
                <stop offset="1" stop-color="#fff" stop-opacity="0"/>
              </linearGradient>
              <mask id="hb-mask" maskContentUnits="objectBoundingBox">
                <rect width="1" height="1" fill="url(#hb-fade)"/>
              </mask>
            </defs>
            <g mask="url(#hb-mask)" data-haze-g></g>
          </svg>
          <span class="hb__frost" aria-hidden="true"></span>
          <span class="hb__rim hb__rim--warm" data-rim aria-hidden="true"></span>
          <span class="hb__shine" data-shine aria-hidden="true"></span>
          <span class="hb__sweep" aria-hidden="true"><span class="hb__sweep-band" data-sweep></span></span>
          <span class="hb__row">
            <span class="hb__icon" aria-hidden="true">
              <svg viewBox="0 0 24 24">
                <defs>
                  <linearGradient id="hb-flame" x1="0" y1="1" x2="0" y2="0">
                    <stop offset="0" stop-color="var(--ember)"/>
                    <stop offset="1" stop-color="var(--amber)"/>
                  </linearGradient>
                </defs>
                <g data-flame>
                  <path class="hb__flame-fill" data-flame-fill d="M12 2.6c.6 3.1 2.6 4.6 4.1 6.6 1.3 1.7 2.2 3.4 2.2 5.6 0 3.7-2.9 6.6-6.3 6.6s-6.3-2.9-6.3-6.6c0-2.2 1-3.9 2.2-5.1.3 1.5 1 2.5 2.1 3-.4-3.9.7-7.6 2-10.1z"/>
                  <path class="hb__flame-line" data-flame-line d="M12 2.6c.6 3.1 2.6 4.6 4.1 6.6 1.3 1.7 2.2 3.4 2.2 5.6 0 3.7-2.9 6.6-6.3 6.6s-6.3-2.9-6.3-6.6c0-2.2 1-3.9 2.2-5.1.3 1.5 1 2.5 2.1 3-.4-3.9.7-7.6 2-10.1z"/>
                  <path class="hb__flame-core" data-flame-core d="M12 12.4c.9 1.3 2.4 2.3 2.4 4.2 0 1.5-1.1 2.6-2.4 2.6s-2.4-1.1-2.4-2.6c0-1.6 1.6-2.7 2.4-4.2z"/>
                </g>
              </svg>
            </span>
            <span class="hb__text" aria-hidden="true">
              <span class="hb__stack">
                <span class="hb__title" data-title>Boost heat</span>
                <span class="hb__title" data-title>Heating</span>
                <span class="hb__title" data-title>Boosted</span>
              </span>
              <span class="hb__stack">
                <span class="hb__sub" data-sub>Living room · 30 min</span>
                <span class="hb__sub" data-sub>Warming to 22.0°</span>
                <span class="hb__sub" data-sub>Warm for 30 min</span>
              </span>
            </span>
            <span class="hb__temp" data-temp aria-hidden="true">
              <span class="hb__digit"><span class="hb__strip" data-strip></span></span><span class="hb__digit"><span class="hb__strip" data-strip></span></span><span class="hb__dot">.</span><span class="hb__digit"><span class="hb__strip" data-strip></span></span><span class="hb__deg">°</span>
            </span>
          </span>
        </span>
      </button>
    </div>
    <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="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.

28 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 “Heating boost 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 a near black page with a very fine grain there is a single pill button 60 pixels tall, made of dark cool glass: the top edge catches the light in one pixel, the bottom one stays in shadow and under the button the floor has a pale blue glow. Inside, the flame drawn in outline, the words Boost heat with, small underneath, Living room · 30 min, and on the right the room temperature, 19.5°. With the mouse over it a soft light follows the pointer, the flame sways gently and the edge takes the faintest hint of warmth. Pressed, the glass sinks by a pixel and narrows, and a small orange ember gathers under the finger; on release the glass springs back and the warmth spreads from there: a big ember grows until it fills the glass and a second, paler one drifts back and forth, while seven threads of hot air shimmer upwards inside. The flame fills with a gradient from ember red to amber with a pale heart that flickers, the words become Heating and Warming to 22.0°, and the temperature rises half a degree at a time: first the decimal rolls, then a beat later the whole degrees, like a real counter, and every digit grows bolder and warmer in colour. At 22.0° the edge lights up amber, the glass swells by a hair and springs back, a slanted reflection crosses it, the flame gives a little jump, the temperature lifts by two pixels and settles, and the words say Boosted, Warm for 30 min. After a moment the button cools down: the embers shrink and go out, the hot air fades, the digits roll back down to 19.5° and the flame goes back to an outline. Until someone touches it, the button goes round by itself.

How it works

Glass in layers

The button is a single box that GSAP moves with scale and y; inside, absolute layers with overflow hidden and the inherited round corners: the cool base, the warmth, the hot air in SVG, the pane with a feTurbulence grain and three inner shadows, the warm rim, the pointer light and the reflection.

The warmth is one number

An object with warm from 0 to 1 drives everything in one function: the scale and opacity of the two embers (blurred radial-gradients placed with x and y at the click point), the hot air, the rim, the two glows on the floor that swap, the three layers of the flame and the weight and colour of the temperature, with fontWeight on the variable font’s wght axis and color-mix.

The hot air redrawn

Seven vertical SVG paths are rebuilt every frame by the GSAP ticker from thirteen points on a sine that slides in time, with an amplitude that grows as they rise; a mask with a gradient fades them at the bottom and the top. When the warmth is zero the ticker draws nothing.

The rolling digits

Every digit is a column of eleven numbers (0 to 9 and 0 again) inside a 1em window with a soft mask: GSAP moves the column with yPercent and back.out. Going up from 9 to 0 it travels to the second zero and then jumps to the first unseen; going down from 0 it starts from the second zero. The decimal moves first, the units 0.05 seconds later, the tens 0.1.

Arrival and return

A timeline brings warm to 1 in DURATION seconds with power1.inOut and rounds the temperature to the half degree at every step; on arrival the glass goes to 1.02 and comes back on an elastic spring, a slanted band of light crosses it with xPercent and the flame jumps. After HOLD seconds a tween brings warm back to 0 and the digits roll back down.

Values to change

NameFileDefaultWhat it changes
LABEL_RESTscript.jsBoost heatThe words at rest.
LABEL_BUSYscript.jsHeatingThe word while it warms.
LABEL_DONEscript.jsBoostedThe word on arrival.
ROOMscript.jsLiving roomThe room, in the small line.
FROMscript.js19.5The room temperature at rest, in degrees (10 to 39).
TOscript.js22The temperature the boost reaches.
MINUTESscript.js30How many minutes the boost lasts.
DURATIONscript.js3.2How many seconds it takes to warm up.
HAZEscript.js1How visible the hot air is.
SPRINGscript.js1How springy the press is: 0.4 calm, 2 very bouncy.
HOLDscript.js1.8How many seconds Boosted stays before cooling down.
AUTOscript.jstrueThe button goes round by itself until someone touches it.

Try them in the Playground

When to use it

For the quick action of a smart home app that changes something physical and takes a few seconds: a heating boost, hot water, an oven to preheat. The glass warming up and the digits rising tell that the house got the command and is working on it.

On phones

On the phone the button is at most 84% of the screen wide and the hot air redraws to its size; there is no hover, so the light under the finger turns on at the touch and the warmth starts where you tap, the rest is the same.

With reduced motion

Nothing moves: the embers do not grow but the warmth fades in, there is no hot air, the flame takes its colour in place, the digits change with a fade instead of rolling and the words swap without moving.

Pitfalls

  • From 9 to 0 the digit column would have gone back through every number: at the bottom of the column there is a second zero, going up it travels there and then jumps unseen to the first, and going down from zero it starts there.
  • With font-variant-numeric: tabular-nums Mona Sans draws a slashed zero, and 20.0° looked like a code: every digit already sits in its own column, so tabular is not needed and the zero is round again.
  • GSAP warned «Invalid property rimHint» when animating a plain object that did not have the property yet: the object is born with rimHint at 0.
  • With reduced motion the embers do not grow, and the warmth stayed a 150 pixel patch in the corner of the click: there the embers get their full scale at once and only the opacity changes.
  • The ember gathered under the finger vanished at once on release, when the warmth timeline started from zero: the ember’s opacity starts at 0.45, the same as the press, and rises from there.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

Compressed with gzip, the three demo files weigh 8.8 KB; the libraries: GSAP 28 KB.

Testing

Tested on 2 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