animo-core

1.0.8 • Public • Published

animo-core

animo animation core.

Install

❯ yarn add animo-core

Usage

import animo from 'animo-core';
 
const flashAnimation = (el) => {
  return new animo(el, {
    isAnimation: true,
    onComplete: function(element) {
      el.classList.remove('animated', 'flash')
    },
    onIteration: function(element) {
      el.classList.add('animated','flash')
    }
  })
}

Options

{
  iterate: 1,
  isAnimation: false,
  onComplete: () => {},
  onIteration: () => {},
  onMount: () => {}
}

Readme

Keywords

Package Sidebar

Install

npm i animo-core

Weekly Downloads

35

Version

1.0.8

License

MIT

Last publish

Collaborators

  • thrivingkings