universal-transition-bugfix

0.0.1 • Public • Published

universal-transition npm

Achieve transition animation

Install

$ npm install universal-transition --save

Usage

import transition from 'universal-transition';

transition(document.querySelector('#box'), {
  transform: 'translate(10px, 20px) scale(1.5, 1.5) rotate(90deg)',
  opacity: '0.5'
}, {
  timingFunction: 'ease',
  delay: 0,
  duration: 1000
}, function() {
  console.log('animation end');
});

APIS

transition(domNode, styles, options, callback)

  • domNode: Required, DOMNode
  • styles: Required, Object, transition styles
  • options: Optional, Object, options attributes:
    • timingFunction: default ease,
    • delay: default 0,
    • duration: default 0,
  • callback: Optional, Function, after animation end

Readme

Keywords

none

Package Sidebar

Install

npm i universal-transition-bugfix

Weekly Downloads

1

Version

0.0.1

License

BSD-3-Clause

Last publish

Collaborators

  • shenbin