which-transition-end-event

0.1.0 • Public • Published

which-transition-end-event

NPM version Build Status Coverage Status Dependency Status Dev Dependency Status NSP Status

returns the browser transition end event name and caches it for future use

table of contents

installation

npm install dan-nl/which-transition-end-event

usage

default

var whichTransitionEndEvent = require( 'which-transition-end-event' );
var elm = document.getElementById( 'my-elm' );
 
function eventHandler( evt ) {
  console.log( evt );
}
 
elm.addEventListener( whichTransitionEndEvent(), eventHandler );

clear cache

var whichTransitionEndEvent = require( 'which-transition-end-event' );
var elm = document.getElementById( 'my-elm' );
 
function eventHandler( evt ) {
  console.log( evt );
}
 
elm.addEventListener( whichTransitionEndEvent( true ), eventHandler );

license

MIT License

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    36
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    36

Package Sidebar

Install

npm i which-transition-end-event

Weekly Downloads

36

Version

0.1.0

License

MIT

Last publish

Collaborators

  • dentous