animo-core

animo animation core

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
animo-core
1.0.86 years ago7 years agoMinified + gzip package size for animo-core in KB

Readme

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