@webanimate/webanimate
v0.0.0-alpha.5
Published
Use Web Animations API easier
Downloads
7
Maintainers
Readme
Webanimate
Use Web Animations API easier.
This is alpha. Please don't use it. Stable version coming very soon.
Install
$ yarn add webanimate
or
$ npm install webanimate
Usage
Import:
import webanimate from 'webanimate'
Or load from CDN:
<script src="https://cdn.jsdelivr.net/npm/webanimate@latest/dist/webanimate.js"></script>
options as listed here plus 2 additional options:
play
(Boolean) - whether to play animation after creation or notall
(Boolean) - whether to usequerySelector
orquerySelectorAll
. Iffalse
passes selectors todocument.querySelector
and returns single animation ornull
, iftrue
toquerySelectorAll
, returnsArray
of animations ornull