Produce easing values with each invocation. When the easing is complete, the final value continues to return. Timer starts when return function is first invoked.
If you need to check if an easing is done or reset it, consider tickEasing.
import { Easings } from "https://unpkg.com/ixfx/dist/modulation.js";// Quad-in easing over 100 ticksconst e = Easings.ticks(`quadIn`, 100);// Keep calling e() to get the current valuee(); Copy
import { Easings } from "https://unpkg.com/ixfx/dist/modulation.js";// Quad-in easing over 100 ticksconst e = Easings.ticks(`quadIn`, 100);// Keep calling e() to get the current valuee();
This is just a wrapper around Modulator.ticks
Easing name or a function that produces 0..1 scale
Total length of ticks
Produce easing values with each invocation. When the easing is complete, the final value continues to return. Timer starts when return function is first invoked.
If you need to check if an easing is done or reset it, consider tickEasing.
This is just a wrapper around Modulator.ticks