@slidy/easing
Advanced tools
+1
-1
| /** Easing function. | ||
| * @param t value from 0 to 1 | ||
| * @returns value from 0 to 1 | ||
| * @default easeInOutCubic | ||
| * @default linear | ||
| * @see https://easings.net | ||
| */ | ||
| export declare type Easing = (t: number) => number; |
+1
-1
| { | ||
| "name": "@slidy/easing", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "Simple easing functions for inertion scrolling", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs", |
+12
-0
@@ -35,2 +35,14 @@ [](https://www.npmjs.com/package/@slidy/easing) | ||
| ```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; | ||
| ``` | ||
| ### MJS/CJS module import | ||
@@ -37,0 +49,0 @@ |
8238
2.16%90
15.38%