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

https://github.com/maximilianmairinger/waapieasing

Waapi bezier-functions as css string and js function
https://github.com/maximilianmairinger/waapieasing

bezier css css-string easing function waapi

Last synced: about 1 year ago
JSON representation

Waapi bezier-functions as css string and js function

Awesome Lists containing this project

README

          

# Waapi easing

Waapi bezier-functions as css string and js function

## Example

### Common functions

```ts
import { Easing } from "waapi-easing"

let ease = new Easing("ease")

ease.string // "ease"
ease.function // (n: progress) => progress
```

> Note: `progress` is a number between 0 and 1.

These are all available common function:

* linear
* **ease**
* easeIn
* easeOut
* **easeInOut**

### Custom functions

```ts
let custom = new Easing(.48, .165, .325, .97)

custom.string // "cubic-bezier(.48, .165, .325, .97)"
custom.function // (n: progress) => progress
```

## Contribute

All feedback is appreciated. Create a pull request or write an issue.