jquery.transition
A custom jQuery event that executes user-defined callback functions during an elements CSS transition.
Demo
See the demo here.
Dependencies
jquery.transition is dependent on jQuery version 1.8.4+.
Installation
Manual installation
Reference the file in your project:
Using Bower
bower intsall jquery.transition
Using NPM
npm install jquery.transition --save-dev
Options & Usage
Just as a heads up: There is also working example of how to use the plugin in the repo.
Options:
All options are set as the second parameter of the jQuery event-binding method .on(...)
. For more info on this method, read the documentation on jQuery'r website. As an example:
;
Basic usage:
Add the transition property values in your CSS:
Bind the event:
;
Do something to initialize the transition:
;
License
This plugin is licensed under the MIT license. A copy of the license is included in this package.