0.0.0-alpha.5 • Published 4 years ago

@webanimate/webanimate v0.0.0-alpha.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Webanimate

code style: prettier npm.io npm.io

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 not
  • all (Boolean) - whether to use querySelector or querySelectorAll. If false passes selectors to document.querySelector and returns single animation or null, if true to querySelectorAll, returns Array of animations or null