Fx.Highlight

Fx.Highlight is the standard element highlighting visual effect.

Default Color

By default the highlighting color is yellow, but you can specify your own default color by assigning the Fx.Highlight.Options.color variable.

Methods

start

top ↑start

start([String highlight_color[, String end_color]]) -> Fx self

Description

Starts the element highlighting effect. May take the highlight and final color arguments:

Example

var fx = new Fx.Highlight('element');

fx.start();
fx.start('blue');
fx.start('blue', 'pink');