Produce easing values over time. 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 timeEasing.
import { Easings } from "https://unpkg.com/ixfx/dist/modulation.js";// Quad-in easing over one secondconst e = Easings.time(`quadIn`, 1000);// Keep calling e() to get the current valuee(); Copy
import { Easings } from "https://unpkg.com/ixfx/dist/modulation.js";// Quad-in easing over one secondconst e = Easings.time(`quadIn`, 1000);// Keep calling e() to get the current valuee();
This function is just a wrapper around Modulate.time
Easing name or a function that produces 0..1 scale
Duration
Produce easing values over time. 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 timeEasing.
This function is just a wrapper around Modulate.time