$('#canvas').canvasAnimation({steps : [// example steps{addClass : 'ca-1',duration : 800},{addClass : 'ca-2',duration : 800},{addClass : 'ca-3',duration : 800},{addClass : 'ca-4',duration : 500}],timeout: 0,// 0 = starts immediately the first step (milliseconds)reset_duration: 500,// time it takes to reset all animations (milliseconds)infinity: true,// if true: plays animation infinityautoplay: true,// if true: plays animation instantlycontrols: true,// if true: adds controls to canvascontrols_fa: null,// fontawesome version (4 or 5)controls_wrapper: '.controls',// class of the controls wrapperplay_button: '.play',// class of play buttonpause_button: '.pause',// class of pause buttonreset_button: '.reset',// class of reset buttonfullscreen_button: '.fullscreen',// class of fullscreen buttonclass_done: 'done',// is set if the animation is doneclass_wait: 'wait',// is set if autoplay : false and animation is never played or user clicked on reset buttonclass_wrap: 'canvas-animation',controls_template:
'<div class="controls">'+'<div class="play #PLAY#"></div>'+'<div class="pause #PAUSE#"></div>'+'<div class="reset #RESET#"></div>'+'<div class="fullscreen #FULLSCREEN#"></div>'+'</div>',callback_play: null,// called before first animation stepcallback_done: null,// called after last animation stepcallback_wait: null// called if class_wait was added});