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

https://github.com/mediv0/manticore

🎨 Simple animation library ,gsap.from clone
https://github.com/mediv0/manticore

animation-library animations javascript javascript-es6 javascript-library javascript-plugin js vue vue2

Last synced: 2 months ago
JSON representation

🎨 Simple animation library ,gsap.from clone

Awesome Lists containing this project

README

        

# Manticore
🎨 Simple animation library ,gsap.from clone

# [click for demo](https://codesandbox.io/s/gallant-platform-5g873?file=/index.html)



#### 🚨 note: `This package is for test purposes.`

> The manticore is a Persian legendary creature similar to the Egyptian sphinx.

```bash
npm i @mediv0/manticore
```

## usage:
```javascript
import Manticore from "@mediv0/manticore";
Manticore.from({
target: ".box", // element for animation
left: 400, // animation from left direction use negative number for right direction eg => left: -400
top: 0, // animation from top direction use negative number for bottom direction eg => top: -400
duration: 2, // duration of your animation in seconds 2 -> 2 seconds
easing: "easeInOutCirc" // use to change animation timing. default => easeInOutSine
});
```

## availble easing functions

| ease |
|---------------|
| easeInOutSine |
| easeInOutCirc |
| easeInOutQuad |
| easeInOutCubic |
| easeOutBounce |