Releases: camille-hdl/animatePaper.js
Releases · camille-hdl/animatePaper.js
v1.2.1
- TS rewrite : TS declarations are available in dist/src/animatePaper.d.ts
- custom easings : you can now pass a
function
(p: number) => number
tosettings.easing
- bug fix : negative absolute position supported (relative values must be of string type)
- bug fix :
duration: 0
is now allowed - Color support for
paper.Group
animation - rgb, gray, hsl, hbs Color formats are now supported
Thanks to s-light for contributing.
v1.0.1
paper
is now a peerDependency, this should remove unnecessary code from your dependency tree.- The
segmentGrow
property andgrow
effect have been removed (this feature was very buggy). - When using
rotate
orscale
properties, you can provide a new setting :center
(orrotateCenter
/scaleCenter
) (default isitem.position
). Animation
supports a new optionrepeat
(defaults to0
, see readme.md for more).settings.complete
callback takes theAnimation
object as 1st argument.
It also includes a few old bug fixes that didn't make it into a release yet, but were already in master.
NPM support
Since paper now supports npm, it had to be done.
browserify compat
Should work better with browserify if you have installer paper.js with npm in your project.
Cleaner repo and bower
No new features, but a cleaner repo (gitignored doc/, bower_components/ and node_modules/, and it is now installable via bower install paper-animate
.
First release : .animate and effects
This is a work in progress : use at your own risk.
This release contains stable features like the animation of opacity
, position
, fillColor
, strokeColor
, translate
, scale
, but also buggy ones like segmentGrow
.
This release contains the following effects:
shake
, fadeIn
, fadeOut
, slideUp
, slideDown
, splash
.
What is to come (hopefully) in the next release:
- tests
- complete rewrite of buggy features like
segmentGrow
.