[Elements] are optional
Defined in
Effects/Fade/0.1/lib.js
Class SAPO.Effects.Fade
class
SAPO.Effects.Fade
Inclusion link: http://js.sapo.pt/SAPO/Effects/Fade/0.1/
Sample: http://js.sapo.pt/SAPO/Effects/Fade/sample/
Constructor Summary
Fade()
Function Summary
Transitions a given element from one opacity value to another
Hides a given element with a fadeout effect
Shows a given element with a fadein effect
Function Details
function fromTo
fromTo(Object
el, Object
options)
Transitions a given element from one opacity value to another
Parameters:
el
- target element
options
- animation options -
Number from- initial opacity value (between 0 and 1) -
Number to- final opacity value (between 0 and 1) -
Number dur- duration in milliseconds -
Function after- Callback executed when the animation is finished
function hide
hide(Object
el, Object
options)
Hides a given element with a fadeout effect
Parameters:
el
- target element
options
- animation options -
Number dur- duration in milliseconds -
Function after- Callback executed when the animation is finished
function show
show(Object
el, Object
options)
Shows a given element with a fadein effect
Parameters:
el
- target element
options
- animation options -
Number dur- duration in milliseconds -
Function after- Callback executed when the animation is finished
requires SAPO.Effects.Core