Exciting release!Introducing "safe npm". Learn more
Socket
Log inDemoInstall

transitionEnd

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Issues
File Explorer

Advanced tools

transitionEnd

TransitionEnd is an agnostic and cross-browser library to work with event transitionend.

    1.0.3latest
    GitHub

Version published
Maintainers
1
Weekly downloads
514
decreased by-20.19%

Weekly downloads

Readme

Source

TransitionEnd

TransitionEnd is an agnostic and cross-browser library to work with event transitionend.

Browser Support

ChromeFirefoxInternet ExplorerOpera
1.0+ ✔4.0+ ✔10+ ✔10.5 ✔3.2+ ✔

Installation

To install Selecting, execute:

npm install transitionEnd

Or Bower too:

bower install transitionEnd

Or simply pick up the file from src directory.

Methods

  • transitionEnd(element).bind(callback)
  • transitionEnd(element).unbind()
  • transitionEnd(element).whichTransitionEnd()

How does it work?

var box = $("#box"); // or document.getElementById("box") var foo = $("#foo"); transitionEnd(box).bind(function(){ foo.addClass("on"); transitionEnd(box).unbind(); }); var transition = transitionEnd(box).whichTransitionEnd(); // return for example "webkitTransitionEnd"

Keywords

FAQs

Last updated on 03 Apr 2021

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc