fx Class
Effects : A facade for easy to use animations.
Methods
fadeIn
-
item -
settings
Increase the opacity to 1
Parameters:
-
itemObjecta paper.js
Itemobject -
settingsObject-
durationNumberDuration of the animation. Default : 500
-
easingStringName of the easing function. Default : swing
-
completeFunctioncomplete callback
-
fadeOut
-
item -
settings
Decrease the opacity to 0
Parameters:
-
itemObjecta paper.js
Itemobject -
settingsObject-
durationNumberDuration of the animation. Default : 500
-
easingStringName of the easing function. Default : swing
-
completeFunctioncomplete callback
-
grow
-
path
Grow a path
Parameters:
-
pathObjecta paper.js
Pathobject
shake
-
item -
settings
Shake an item
Parameters:
-
itemObjecta paper.js
Itemobject -
settingsObject-
nbNumberNumber of shakes. Default : 2
-
movementNumberLength of each shake? Default : 40
-
completeFunctioncomplete callback
-
slideDown
-
item -
settings -
setting.distance
Decrease the opacity to 0 and go downward
Parameters:
-
itemObjecta paper.js
Itemobject -
settingsObject-
durationNumberDuration of the animation. Default : 500
-
easingStringName of the easing function. Default : swing
-
completeFunctioncomplete callback
-
-
setting.distanceNumberDistance to move downward. Default : 50
slideUp
-
item -
settings -
setting.distance
Increase the opacity to 1 and go upward
Parameters:
-
itemObjecta paper.js
Itemobject -
settingsObject-
durationNumberDuration of the animation. Default : 500
-
easingStringName of the easing function. Default : swing
-
completeFunctioncomplete callback
-
-
setting.distanceNumberDistance to move upward. Default : 50
splash
-
item -
settings
Increase the opacity to 1, rotates 360deg and scales by 3.
Parameters:
-
itemObjecta paper.js
Itemobject -
settingsObject-
durationNumberDuration of the animation. Default : 500
-
easingStringName of the easing function. Default : swing
-
completeFunctioncomplete callback
-
