Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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