Fx.Fade

Fx.Fade is a basic opacity visual effect. It is a bidirectional effect and thus can work both ways in and out. By default it will determine the direction depending on the current state of the element.

Methods

start

top ↑start

start([String how]) -> Fx.Fade self

Description

Starts the effect. May take the following arguments:

  • ‘in’
  • ‘out’
  • ‘toggle’

toggle is the default value.

Example

new Fx.Fade(element).start();

new Fx.Fade(element).start('in');
new Fx.Fade(element).start('out');