UNPKG

sliderjs

Version:

lightweight slideshow engine using CSS, Canvas and WebGL Transitions

10 lines (7 loc) 239 B
sliderjs.canvasTransitions("clock", { clippedTransition: function (o, ctx) { var w = ctx.canvas.width, h = ctx.canvas.height; ctx.moveTo(w/2, h/2); ctx.arc(w/2, h/2, Math.max(w, h), 0, Math.PI*2*o.progress, false); } });