technique

Sine-driven ping-pong loop

Driving an animated value with Math.sin so it eases back to its starting point, either continuously in -1..1 or as a 0..1 ping-pong tied to a sketch's playhead/duration.

Also called: looping motion via Math.sin · ping-pong motion

What it is

How it works

Parameters & tuning

Where it’s been used

Variants & neighbours

Go deeper

Connected to

Contrast with: Frame-based state animation loop


Revision 1 · 1 source · Something wrong? Tell us.