Skip to content

dan-nl/which-transition-end-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published