https://github.com/jgtools/easings
Collection of easing functions
https://github.com/jgtools/easings
easing-functions javascript jgtools typescript
Last synced: about 1 month ago
JSON representation
Collection of easing functions
- Host: GitHub
- URL: https://github.com/jgtools/easings
- Owner: JGTools
- License: mit
- Created: 2022-12-06T22:10:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-22T11:04:06.000Z (over 3 years ago)
- Last Synced: 2025-02-02T17:47:33.981Z (over 1 year ago)
- Topics: easing-functions, javascript, jgtools, typescript
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Easings
[](https://www.npmjs.com/package/@jgtools/easings)
[](https://www.npmjs.com/package/@jgtools/easings)
[](https://github.com/git/git-scm.com/blob/main/MIT-LICENSE.txt)
Collection of easing functions
## Installation
### Using npm
```bash
npm i @jgtools/easings
```
```javascript
// import all functions using a namespace
import * as Easings from "@jgtools/easings";
// or import functions individually
import { outElastic } from "@jgtools/easings";
// ...
```
### Using cdn
```html
// import all functions using a namespace
import * as Easings from "https://cdn.jsdelivr.net/npm/@jgtools/easings@2.0.5/dist/index.min.js";
// or import functions individually
import { outElastic } from "https://cdn.jsdelivr.net/npm/@jgtools/easings@2.0.5/dist/index.min.js";
// ...
```
## Usage
```javascript
import { outElastic } from "@jgtools/easings";
const res = outElastic(0.5);
```
### Easing functions cheat sheet:
https://easings.net/
## License
MIT