GODRICH
#css-animation#button#loader#transition#scroll#dashboard#ui#design-trends

02Flick to angular velocity — turning pointer travel into spin

Each pointermove measures the angle from center with Math.atan2; the delta over elapsed time yields angular velocity in rad/s. The value at release becomes the initial spin, so the disc turns exactly as hard as you flicked it.

Best forInteractive draws, playful screens

pointermovepointerdownMath.atan2
Flick to angular velocity — turning pointer travel into spin
Open in a new tab

02 Flick to angular velocity — turning pointer travel into spin — Measured area 23.217% · moving frames 23/23Original by GODRICH · SCSS and React ship in the zip · Spin Wheel: 9 Canvas Roulettes, Flick to Stop

The post this demo lives in

Spin Wheel: 9 Canvas Roulettes, Flick to Stop - preview of all 9 demosSpin Wheel: 9 Canvas Roulettes, Flick to StopIt spins exactly as hard as you flick it. Angular velocity is integrated, friction decays it, and the sector under the p See all demos in this post

If you like this effect - similar demos