API Docs for: 0.1
Show:

Morph Class

Extends Widget
Module: gallery.anim.morph

Morph animation class to swap between two nodes.

Constructor

Morph

()

Item Index

Attributes

Methods

_perform_anim_morph

(
  • ev
  • src
  • target
)
private

Perform the animated version of the Morph.

Parameters:

  • ev Event
  • src Node
  • target Node

initializer

(
  • cfg
)

Pass an optional animate boolean flag to skip animations. Useful for initial states/testing.

Parameters:

  • cfg Object

morph

(
  • reverse
)

Perform the morph animation between the nodes.

Parameters:

  • reverse Bool

    the animation back.

reverse

()

Reverse the animation effect.

Shortcut for morph(true)

Attributes

targetNode

String | Node

The DOM node to be morphed from.

Default: null