node package manager
Stop wasting time. Easily manage code sharing in your team. Create a free org »

animo-core

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: () => {}
}