Simple easing functions for inertion scrolling
npm install @slidy/easing




Simple easings function for inertion scrolling.
#### Try the [DEMO]
> - Getting started
> - Usage
The package is available via [NPM]:
``sh`
npm i -D @slidy/easing
or from [CDN]:
`html`
Easing functions available via named import as MJS/CJS module or via global Window.Slidy object props as IIFE. linear, quad, cubic, quart, quint, bounce, sine, expo, elastic, circ, back
Includes as EaseIn functions.
More info: https://easings.net.
> ⚠️ For proper operation minimal duration: 450 needed.
`ts
/** Easing function.
* @param t value from 0 to 1
* @returns value from 0 to 1
* @default linear
* @see https://easings.net
*/
type Easing = (t: number) => number;
`
`html`
`html
`
`svelte
``
MIT © Valexr
[DEMO]: https://slidy-core.surge.sh
[NPM]: https://www.npmjs.com/package/@slidy/easing
[CDN]: https://unpkg.com/@slidy/easing/
[REPL]: https://svelte.dev/repl/e7a3683b13b342dc8ecfc1d9b2b806f6