Create three physical lever toggle switches on the panel of an espresso machine called Merla. Warm beige page (#e6ddcf). A brushed steel plate made from a 3px repeating stripe over a #d9dce0 to #a9aeb5 gradient, 30px corners, a cream enamel rim, four screws and a cup tray above. Top row: the engraved MERLA wordmark, "Duetto 2, dual boiler", a status line with a coloured dot, and a 112px pressure gauge drawn in SVG with 0 to 12 bar ticks, a green 8 to 10 zone and a red needle on a damped spring with a small pump wobble. Below, three switches (Power, Steam, Cup warmer), each a role switch button with an amber pilot lamp, ON and OFF engraving, a ringed chrome nut and a bat lever rotated with rotateX in 260px perspective, 28deg for on and 152deg for off, with a moving blurred shadow. Clicking snaps over 320ms with cubic-bezier(.3,1.7,.5,1). Dragging feels stiff until 26px, then snaps through. On every snap the plate jolts 1.5px for 190ms, the nut squashes and the lamp flickers on, with a 12ms vibration where supported. Power warms the boiler to 93°C and lifts the needle to 9 bar; Steam puffs steam above the machine; Cup warmer tints the tray and raises heat lines. Fit 390 by 504 on phones; reduced motion drops the particles.
Written by Informeek Studio to recreate this design. Prompts are not deterministic, so running it again gives a similar result, not an identical one.
About this toggle switch animation
Most switches on screen are a dot sliding in a pill. This toggle switch animation goes the other way and copies a real one: a chrome bat lever on a ringed nut, set into a brushed steel panel from an espresso machine. The lever tips over in 3D perspective and casts a soft shadow that moves with it, so up and down read clearly from across the room.
The feel comes from the details around the snap. Drag a lever and it resists, barely moving, until you pass a small detent and it jumps through. At that moment the whole panel jolts a pixel and a half, the nut squashes, the amber lamp flickers on and, on phones that allow it, a tiny vibration fires. Nothing makes a sound, yet it feels like a click. The switches do real work too: Power warms the boiler and lifts the gauge, Steam sends up puffs and the cup warmer heats the tray.
Why the prompt works
- It gives the angles and perspective, so the lever looks solid.
- It describes the detent, stiff until 26px, then a snap.
- It lists every part of the snap, jolt, squash, flicker and vibration.
- It wires switches to results, a gauge, a status line and steam.
Where to use it
Smart home panels, product pages for appliances, audio gear, game settings and any place a setting deserves to feel like hardware.