This is a set of jQuery plugins allowing to create a full animatics view. It uses an event-oriented architecture to provide scalability and extensibility.
The plugin and all its components are published under MIT License. See the included LICENSE file for detailed information.
- jQuery 1.4+ (tested with 1.4.2, 1.6.1 and 1.7.1)
- jQuery UI 1.8 (tested with 1.8.5 and 1.8.17)
See index.html for working example.
MDMAnimationHeartbeat is the core of the plugin. In a specified frequency it diffuses a global event that tells the listeners to update the frame.
Accepts two parameters on instantiation:
- steps - the number of total steps
- speed - the delay between each beat
- Triggers:
- mdm-animation.reset - tells the listeners that the animation has been reset (ie. restarted)
- mdm-animation.beat - tells the listeners to update the current frame; passes 'current' and 'max' as properties of the 2nd object
- Listens:
- mdm-animation.start - tells the plugin to start beating
- mdm-animation.stop - tells the plugin to start beating
- mdm-animation.beat - updates the current frame by 1
This plugin is a simple event binder allowing the target Node to launch start/stop events on click. Click binding is exchanged on each event trigger.
- Triggers:
- mdm-animation.start
- mdm-animation.stop
This is the viewport for displaying images. It handles image loading and switching.
Accepts two parameters on instantiation:
- images - An array of image urls. Images will be displayed in the order of the array. Required.
- settings - An optional object parameter. Two properties (height and width) are used to configure viewport HTML element.
- Listens:
- mdm-animation.beat - updates the image according to received data
MDMProgressBar displays the animation progress and lets the user interact with it by moving the bar.
Requires one argument:
- steps - the number of total animation steps
- Triggers
- mdm-animation.beat - launches a single beat with image number on scrollbar drag or click to change the image
- Listens
- mdm-animation.beat - updates the progress bar according to received data