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

https://github.com/dmitriyakkerman/animejs-facade

Simple facade above Anime.js animation engine
https://github.com/dmitriyakkerman/animejs-facade

animation animejs

Last synced: about 1 month ago
JSON representation

Simple facade above Anime.js animation engine

Awesome Lists containing this project

README

        

**Usage:**

1.Connect [Anime.js](https://animejs.com/) and anime-facade.

```js

```

2.Init your animation.

_Example with anime-facade preset:_

new AnimeFacade('.logo', {
preset: {
name: 'scale'
}
});

_Example with customized anime-facade preset properties:_

new AnimeFacade('.el', {
preset: {
name: 'fadeIn',
params: {
opacity: [0.5, 1],
}
},
duration: 2500,
delay: function (el, i, l) {
return i * 500
},
easing: "easeOutBounce"
});

_Example with custom Anime.js properties without using anime-facade presets:_

new AnimeFacade('.box', {
custom: {
params: {
translateX: [0, '100px'],
duration: 2500,
delay: 2000,
easing: "easeInOutQuad"
}
}
});

**Available presets**

fadeIn,
fadeOut,
fadeInUp,
fadeInDown,
fadeInLeft,
fadeInRight,
scale,
squeeze,
slideInUp,
slideInRight,
slideRightScale,
slideUpStretch,
num,
draw,
textIn,
textRotate,
textType,
textInLeft,
textInRight,
textInUp,
textInDown

*Presets demos in progress...*