Skip to content
animorio
IT
All components

Oven temperature knob

Dials, Physics, SVGGSAP, CSS onlyAdvancedCompressed weight: Demo 11 KBGSAP 28 KBFreeDownload the zip

The oven panel of an invented smart home app, Halden, on a black page: the brushed aluminium knob sits flush in the panel and a press pops it out on a spring. Turned with a finger it clicks notch by notch, ten degrees at a time, with a small bounce, and the reflection on the metal turns the other way. The notches light up from amber to ember up to the temperature, the figures roll, the panel warms from the bottom; let go, Preheating starts and a thin ring fills around the knob until Ready.

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>
<!--
  "Oven temperature knob" 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 oven temperature knob with the notches that click</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 oven panel of a smart home app (Halden). The brushed aluminium knob sits flush in the panel: a press pops it
         out on a spring, then it turns by hand and clicks notch by notch, with its reflection turning the other way.
         The scale lights up to the temperature, the figures roll, the panel warms, and let go the oven preheats while
         a thin ring fills around the knob -->
    <section class="oven" aria-label="Oven, Halden Home" data-oven>
      <span class="oven__heat" aria-hidden="true" data-heat></span>
      <span class="oven__heat oven__heat--hot" aria-hidden="true" data-hot></span>

      <header class="oven__head">
        <svg class="oven__logo" viewBox="0 0 24 24" aria-hidden="true">
          <rect x="3.5" y="3.5" width="17" height="17" rx="5.5" />
          <path d="M8 15.5c1.4-1.2 2.6-1.2 4 0s2.6 1.2 4 0M8 10.5c1.4-1.2 2.6-1.2 4 0s2.6 1.2 4 0" />
        </svg>
        <span class="oven__titles">
          <span class="oven__name">Oven</span>
          <span class="oven__room">Kitchen · Halden</span>
        </span>
        <span class="oven__mode">
          <svg viewBox="0 0 24 24" aria-hidden="true"><rect x="4" y="4" width="16" height="16" rx="3.5" /><path d="M7.5 8h9M7.5 16h9" /></svg>
          Bake
        </span>
      </header>

      <div class="dial" data-dial>
        <svg class="dial__scale" viewBox="-100 -100 200 200" aria-hidden="true" data-scale></svg>
        <span class="dial__well" aria-hidden="true"></span>
        <button class="knob" type="button" role="slider" aria-label="Oven temperature" aria-valuemin="0" aria-valuemax="250"
                aria-valuenow="0" aria-valuetext="Off" data-knob data-autoclic>
          <span class="knob__shadow" data-shadow></span>
          <span class="knob__lift" data-lift>
            <span class="knob__turn" data-turn>
              <span class="knob__knurl"></span>
              <span class="knob__face"></span>
              <span class="knob__sheen" data-sheen></span>
              <span class="knob__rings"></span>
              <span class="knob__mark"></span>
            </span>
            <span class="knob__warm" data-warm></span>
            <span class="knob__flush" data-flush></span>
          </span>
        </button>
      </div>

      <div class="read">
        <p class="read__temp" aria-hidden="true">
          <span class="read__off" data-offword>Off</span>
          <span class="read__num" data-num>
            <span class="roll" data-roll="0"><span class="roll__col"></span></span><span class="roll" data-roll="1"><span class="roll__col"></span></span><span class="roll" data-roll="2"><span class="roll__col"></span></span><span class="read__unit">°C</span>
          </span>
        </p>
        <p class="read__status">
          <span class="read__state" data-state>
            <svg class="read__check" viewBox="0 0 16 16" aria-hidden="true" data-check><path pathLength="1" d="M3.5 8.4l3 3 6-6.6" /></svg>
            <span data-statetext>Press the knob</span>
          </span>
          <span class="read__now" data-now></span>
        </p>
      </div>

      <svg class="hand" viewBox="0 0 24 24" aria-hidden="true" data-hand>
        <path d="M5.5 3.2 L5.5 18.4 L9.4 14.9 L12 20.6 L14.6 19.4 L12.1 13.9 L17.4 13.6 Z" />
      </svg>
    </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="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.

24 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 “Oven temperature knob” 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 black page sits the oven card of the Halden app: at the top the brand mark, Oven, Kitchen · Halden and the Bake pill; in the middle a dial with a notch every ten degrees from Off to 250, the figures 50, 100, 150, 200 and 250, and inside, in a dark recess, the aluminium knob with its knurled rim, its face brushed in circles and the engraved orange mark. At first the knob is flush, lower and in shadow, and under it reads Off and Press the knob. The pilot's hand presses it: the knob sinks a touch and then pops out on an elastic spring, its shadow grows longer and the recess lets it go. Then it turns it: the knob gives a little between notches and clicks to the next one with a small bounce and a one pixel jolt, the reflection on the metal turns the other way, the notches light up one after the other from amber to ember red with the one under the mark in white, the figures roll from 50 up to 220, the line says Release to preheat and the bottom of the panel warms to orange. Back to 180 it lets go: Preheating starts, a thin ring with a bright tip fills around the knob while Inside 64°C climbs beside it, the warmth of the panel grows and shows on the bottom of the knob; once there, the check draws itself next to Ready and the ring flares for a moment. After a while the hand turns the knob back to Off, past the stop the rim gives as against a rubber band, the oven says Cooling down and the warmth fades; a press puts it back in the panel and the story starts again.

How it works

The knob in layers

The knob is a button with role slider made of layers: one for GSAP that pops it out and presses it (scale and y), inside it one that turns (rotation) with the knurled rim in repeating-conic-gradient, the face and the mark, and on top the warm light and the shadow of the recess, which only change opacity. So no GSAP transform wipes out another.

The reflection that turns the other way

The reflection of the brushed aluminium is a conic-gradient with six light and dark blades inside the turning layer, rotated by GSAP by −angle × (1 + REFLECT): on screen it goes backwards by REFLECT times the knob's turn, like the light on a real knob that stays still while the metal turns. The concentric brush lines are a repeating-radial-gradient that does not change as it turns.

The notches that hold

The angle of the finger is read with atan2 around the centre and added up step by step (with the difference brought between −180 and 180), so the turn never jumps. The notch is the angle rounded to the step; the drawn knob sits at the notch plus DETENT times the gap, so it resists and then clicks: on a new notch a back.out(SNAP) tween passes the mark by a couple of degrees and comes back. Past Off and 250 the angle gives like a rubber band, x / (1 + |x| / 14) × 0.5.

Figures on a drum and the lit scale

Each figure is a column from 0 to 9 in a window one em tall; GSAP moves it with yPercent on a spring, and the hundreds narrow to nothing under 100. The notches are SVG paths with their colour in a --c variable, mixed with color-mix between amber and ember by position: a class lights them with a CSS transition and the one under the mark turns white.

The preheating

Once the knob is let go, a tween takes the temperature inside the oven to the one chosen in PREHEAT seconds for the whole scale; at every step the SVG ring fills with stroke-dashoffset, a second circle with a nine unit dash makes the bright tip, and the warmth of the panel is two radial-gradient layers whose opacity follows the temperature. Once there, the check draws itself with stroke-dashoffset and the ring flares and thins again.

Values to change

NameFileDefaultWhat it changes
TOPscript.js250The highest temperature on the scale, in degrees; a notch every ten degrees from 50.
SWEEPscript.js270How far the knob turns from Off to the highest temperature, in degrees.
DETENTscript.js0.3How much the knob gives between two notches before it clicks (0 rigid, 1 smooth).
SNAPscript.js2.4The bounce of each click: higher kicks further past the notch.
REFLECTscript.js0.45How much the reflection turns the other way (0 it stays with the knob).
PREHEATscript.js5The seconds the oven takes to heat from room temperature to the highest one.
POPscript.js0.5The spring of the knob popping out: lower wobbles more.
LOOPscript.jstrueThe pilot plays the story again and again.

Try them in the Playground

When to use it

For the app of an appliance or a smart home (oven, hob, boiler, washing machine), for the landing page of a smart oven or a kitchen brand, or as a dashboard control where a value is picked in steps and a confirmation comes later: the knob popping out of the panel says touch me by itself, and the ring that fills says how long is left.

On phones

The same animation with adapted sizes: the card is 92% of the screen wide, the dial is sized on the width and the height (min(66vw, 47vh)), the figures with clamp. A finger turns it like the mouse (touch-action: none on the knob); a tap without turning pops it out or, at Off, pushes it back in.

With reduced motion

Nothing moves on its own: the card fades in, the knob pops out and back changing only light and shadow, the handless pilot goes from Off to 180 and back in a moment, the figures and the words change with a fade; the ring fills and the panel warms, which are not movements. With a finger the knob follows the hand without bounces.

Pitfalls

  • With the finger's angle taken straight from atan2, passing under the knob made the turn jump by 360 degrees: the difference between one event and the next is added up, brought between −180 and 180.
  • With the knob out and at Off the line underneath said Off like the big figure, and during the fade two Offs showed: the line now says Turn to set, that is what to do.
  • The ring's width and colour given as SVG attributes did not change: the CSS class beats presentation attributes, so the Ready flare animates the style and clears it with clearProps on the next round.
  • The figures with tabular-nums took Mona Sans's dotted zeros and looked like another typeface: the drum columns already have their fixed width, so the figures stay plain.

Libraries

GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.

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

Testing

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