Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@webanimate/webanimate

0.0.0-alpha.5 • Public • Published

Webanimate

code style: prettier

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

Install

npm i @webanimate/webanimate

DownloadsWeekly Downloads

2

Version

0.0.0-alpha.5

License

MIT

Unpacked Size

199 kB

Total Files

14

Last publish

Collaborators

  • avatar