API/libsapojs/SAPO/Effects/Slide

[Elements] are optional

Class SAPO.Effects.Slide


class SAPO.Effects.Slide
Defined in Effects/Slide/0.1/lib.js

Constructor Summary
Slide()

Function Summary
down (Object el, Object options)
Slide an element down
up (Object el, Object options)
Slide an element up

Constructor Details

constructor Slide

Slide()

Function Details

function down

down(Object el, Object options)
Slide an element down
Parameters:
el - target element
options - animation options
  • Number dur - duration in milliseconds
  • Function after - Callback executed when the animation is finished

function up

up(Object el, Object options)
Slide an element up
Parameters:
el - target element
options - animation options
  • Number dur - duration in milliseconds
  • Function after - Callback executed when the animation is finished