Creates an easing function
import { Easings } from "https://unpkg.com/ixfx/dist/modulation.js";const e = Easings.create({ duration: 1000, name: `quadIn` });const e = Easings.create({ ticks: 100, name: `sineOut` });const e = Easings.create({ duration: 1000, fn: (v) => { // v will be 0..1 based on time return Math.random() * v }}); Copy
import { Easings } from "https://unpkg.com/ixfx/dist/modulation.js";const e = Easings.create({ duration: 1000, name: `quadIn` });const e = Easings.create({ ticks: 100, name: `sineOut` });const e = Easings.create({ duration: 1000, fn: (v) => { // v will be 0..1 based on time return Math.random() * v }});
Creates an easing function