- new
shortestPath
option forplayTo()
- new
onAnimationEnd
andonFrameChange
callbacks - new
sprite:animation-end
event - new
dragModifier
option - more validations
- fix wrong animation duration
inversion
is now only used while dragging and doesn't affect animation- proper handling of empty animation in
playTo
andplayFrames
- fix animation stop after dragging and loop: false
- umd version filename is now
build/animate-sprite.umd.min.js
- add types, fix documentation
- fix package.json main key
- plugin import changed
- new initialization with constructor instead of
init
method - inline options format has changed from
data-width
todata-sprite-width
- new options
inversion
,touchScrollMode
andpageScrollTimerDelay
- new methods
playTo
,playFrames
,getOption
,updateSizes
andgetReverse
(alias togetOption("reverse")
) - all options are now allowed in
setOption
- all options are now allowed as inline options
sprite:last-frame
andsprite:first-frame
events have been removed- supported browsers have changed (Safari 13.1+, iOS Safari 13.4+)