fx Class
Effects : A facade for easy to use animations.
Methods
fadeIn
-
item
-
settings
Increase the opacity to 1
Parameters:
-
item
Objecta paper.js
Item
object -
settings
Object-
duration
NumberDuration of the animation. Default : 500
-
easing
StringName of the easing function. Default : swing
-
complete
Functioncomplete callback
-
fadeOut
-
item
-
settings
Decrease the opacity to 0
Parameters:
-
item
Objecta paper.js
Item
object -
settings
Object-
duration
NumberDuration of the animation. Default : 500
-
easing
StringName of the easing function. Default : swing
-
complete
Functioncomplete callback
-
grow
-
path
Grow a path
Parameters:
-
path
Objecta paper.js
Path
object
shake
-
item
-
settings
Shake an item
Parameters:
-
item
Objecta paper.js
Item
object -
settings
Object-
nb
NumberNumber of shakes. Default : 2
-
movement
NumberLength of each shake? Default : 40
-
complete
Functioncomplete callback
-
slideDown
-
item
-
settings
-
setting.distance
Decrease the opacity to 0 and go downward
Parameters:
-
item
Objecta paper.js
Item
object -
settings
Object-
duration
NumberDuration of the animation. Default : 500
-
easing
StringName of the easing function. Default : swing
-
complete
Functioncomplete callback
-
-
setting.distance
NumberDistance to move downward. Default : 50
slideUp
-
item
-
settings
-
setting.distance
Increase the opacity to 1 and go upward
Parameters:
-
item
Objecta paper.js
Item
object -
settings
Object-
duration
NumberDuration of the animation. Default : 500
-
easing
StringName of the easing function. Default : swing
-
complete
Functioncomplete callback
-
-
setting.distance
NumberDistance to move upward. Default : 50
splash
-
item
-
settings
Increase the opacity to 1, rotates 360deg and scales by 3.
Parameters:
-
item
Objecta paper.js
Item
object -
settings
Object-
duration
NumberDuration of the animation. Default : 500
-
easing
StringName of the easing function. Default : swing
-
complete
Functioncomplete callback
-