tickEasing allows you to reset and check for completion.
Alternatively, use ticks which is a simple function that just returns a value.
Example: Tick-based easing
import { Easings } from"https://unpkg.com/ixfx/dist/modulation.js"; constt = Easings.tickEasing(`sineIn`, 1000); // Will take 1000 ticks to complete t.compute(); // Each call to `compute` progresses the tick count t.reset(); // Reset to 0 t.isDone; // _True_ if finished
Creates an easing based on ticks.
tickEasing
allows you to reset and check for completion. Alternatively, use ticks which is a simple function that just returns a value.Example: Tick-based easing