- Dependencies update
- Package published to Yarn
- Travis CI
- Change:
new Spritz().init()
combined intoSpritz()
. - Bug fix:
.until()
was stoping the animation a step too early. - New option
init
: Specifies if the sprite should be automatically initiated. - Dev workflow moved from
Gulp
toRollup
. - Added
CHANGELOG.md
. - Dependency update:
[email protected]
- Dependency update:
[email protected]
- Documentation enhancement
- Unit testing with Jest
- Bug fix: sprite wrapper is now
position
:relative;` - Bug fix: this access after the sprite has been destroyed
- Option objectFit moved to picture level
- Position bug fix
- Bug fix: blurry sprites
- Bug fix: calculation problems for certain sprites size
- New option objectFit: Specifies how the sprite should be fitted to the parent. Values:
contain
orcover
- Bug fix: stop() not stoping animations correctly
- Bug fix: blurry sprites
- Alternative way to play an animation backward using
.play('backward')
. - Some
console.log()
removed. - Solved bug: missing parameters for Events.
For this new version, the library has been completely rewritten from scratch. This means that version 2.x is not compatible with the version 1.x.
Why rewriting everything from scratch?
In order to propose better performances and support (by using a Canvas drawing approach instead of CSS only), images responsivity (by using a syntax close to the new HTML5 "picture" element), and more flexibility for designing animations (through a chainable API with timers).
- First release