API Docs for: 0.0.2
Show:

canvas.Curtain Class

Special animation class for SVG elements

Constructor

canvas.Curtain

(
  • node
)

Parameters:

  • node ludo.canvas.Node

Example:

node.curtain().open('LeftRight');

Item Index

Methods

Methods

close

(
  • direction
  • duration
  • fps
)

Close curtains, i.e. hide element

Parameters:

  • direction String

    (LeftRight, TopBottom, BottomTop or RightLeft),

  • duration Number

    in seconds

  • fps Number

    (Frames per second)

open

(
  • direction
  • duration
  • fps
)

Open curtains, i.e. show element

Parameters:

  • direction String

    (LeftRight, TopBottom, BottomTop or RightLeft),

  • duration Number

    in seconds

  • fps Number

    (Frames per second)