Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jgtools/easings
Collection of easing functions
https://github.com/jgtools/easings
easing-functions javascript jgtools typescript
Last synced: 3 days 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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-22T11:04:06.000Z (about 2 years ago)
- Last Synced: 2024-12-28T02:45:43.665Z (8 days 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
[![npm](https://img.shields.io/npm/v/@jgtools/easings)](https://www.npmjs.com/package/@jgtools/easings)
[![npm](https://img.shields.io/npm/dm/@jgtools/easings)](https://www.npmjs.com/package/@jgtools/easings)
[![GitHub](https://img.shields.io/github/license/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/[email protected]/dist/index.min.js";
// or import functions individually
import { outElastic } from "https://cdn.jsdelivr.net/npm/@jgtools/[email protected]/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