1.0.8 • Published 7 years ago

animo-core v1.0.8

Weekly downloads
23
License
MIT
Repository
github
Last release
7 years ago

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

7 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.0

8 years ago