Canvas Image is a javascript object for image transitions using a canvas.

Canvas Image uses Sole's tween.js for transitions.


Target types

The image transitions can not only be applied onto a canvas but also onto an img or any element that has it's background-image set.

Usage

The main function you want to use is the following:

CIMG.tween(target,image,[time],[transitionType],[easingMethod],[properties]);
propertytypedescriptionpossible valuesdefault
toDataURL Boolean
exists Boolean ignore, append, replace
vertical float
fade float t, l, b, r
rotation float
direction String
number integer
character String
font String
callback function