@webanimate/webanimate
v0.0.0-alpha.5
Published
Use Web Animations API easier
Maintainers
Readme
Webanimate
Use Web Animations API easier.
This is alpha. Please don't use it. Stable version coming very soon.
Install
$ yarn add webanimateor
$ npm install webanimateUsage
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 usequerySelectororquerySelectorAll. Iffalsepasses selectors todocument.querySelectorand returns single animation ornull, iftruetoquerySelectorAll, returnsArrayof animations ornull
