- animation started in
playToorplayFramesinfastPreviewmode now stops after full preload instead of playing endlessly - animation-end callback and event are now called after resetting values
- reduced the number of operations in the animation function
- move
core-jstodevDependencies - add
directionto event.detail ofanimate-images:drag-endevent
- new
setForwardmethod - new
responsiveAspectoption that allows to control height instead of width - add
directionto event.detail ofanimate-images:drag-changeevent - reset pixels correction when changing drag direction
- fix dragging when mousemove is called without real movement
- new
fastPreviewoption,onFastPreloadFinishedcallback,animate-images:fast-preload-finishedevent,isFastPreloadFinishedmethod - new
isDraggingmethod - reduce bundle size by 20%
- fix wrong
onPosterLoadedcall
- new
shortestPathoption forplayTo()
inversionis now only used while dragging and doesn't affect animation
- plugin import changed
- new initialization with constructor instead of
initmethod togglePlay()renamed totoggle()- added types
- new
onAnimationEndcallback - new
dragModifieroption playToandplayFramesnow return plugin instance instead of PromiseonBeforeFrameandonAfterFrameparameters changedgetOption()accepts all the options- fix wrong animation duration
- new
inversionoption
- fix console.log()
preventTouchScrollreplaced withtouchScrollModeandpageScrollTimerDelay
- add
preventTouchScrolloption
- fix blurry images when devicePixelRatio > 1
- add
onBeforeFrameandonAfterFramecallbacks with access to the canvas context
- add
animate-images:drag-start,animate-images:drag-changeandanimate-images:drag-endevents
- fix wrong height after resize when canvas width/height ratio is a fractional number
- fix readme
- change build
- plugin has been rewritten with classes