easings
A collection of animation timing functions.
Usage
ts
import type { Easing } from '@screaming/utils'
import { easings } from '@screaming/utils'
const quadIn = easings[Easing.QUAD_IN]
1
2
3
4
2
3
4
TIP
For a list of the available easing functions, see: Easing
.
Type Definitions
ts
type EasingFn = (i: number, j: number, k: number, l: number) => number
export declare const easings: Record<Easing, EasingFn>
1
2
2