animate

animate

Animate plugin constructor for jQuery Sketchable instances.

Source:

Methods

(static) strokes() → {Sketchable}

Animate canvas strokes.

Source:
Returns:
Type:
Sketchable

Sketchable element.

Examples
sketchableInstance.strokes(strokeArray).animate.strokes();
// Accessing event hooks:
sketchableInstance.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.
    },
  }
})
.strokes(strokeArray)
.clear(true)
.animate.strokes();