https://github.com/bttmly/jquery.promise-transitions
https://github.com/bttmly/jquery.promise-transitions
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bttmly/jquery.promise-transitions
- Owner: bttmly
- Created: 2014-03-13T14:41:20.000Z (about 11 years ago)
- Default Branch: gh-pages
- Last Pushed: 2014-03-13T22:03:05.000Z (about 11 years ago)
- Last Synced: 2025-01-08T22:00:56.531Z (4 months ago)
- Size: 148 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
jquery.promise-transitions
==========================A jQuery plugin with modified methods mirroring `.addClass()`, `.removeClass()`, and `.toggleClass()` but that instead return promises that resolve once transition changes complete.
There are some serious shortcomings in the TransitionEvent API, including, most notably, the complete lack of anything like TransitionStart. Use with caution! If you add/remove/toggle a class that doens't change any transitioning properties, but the element does have a `transition-duration`, the promise will never resolve (because there is no way to check if a transition has started).