Animate plugin constructor for jQuery Sketchable instances.
- Source:
Methods
(static) strokes() → {jQuery}
Animate canvas strokes.
- Source:
Returns:
- Type:
-
jQuery
jQuery sketchable element.
Examples
jqueryElem.sketchable('strokes', strokesArray).sketchable('animate.strokes');
// Accessing event hooks:
jqueryElem.sketchable('config', {
events: {
animationstart: function(elem, data) {
// Animation started: the first stroke is being drawn.
},
animationstep: function(elem, data) {
// Animation steped: a new stroke is being drawn.
},
animationend: function(elem, data) {
// Animation ended: the last stroke has been drawn.
},
}
})
.sketchable('strokes', strokesArray)
.sketchable('clear', true)
.sketchable('animate.strokes');