Hover Object

hover

The Hover Object will hover a layer in a straight-line.

Initialization:

objectName.hover = new Hover("objectName","hover")

Example:

mylayer = new DynLayer("mylayerDiv")
mylayer.hover = new Hover("mylayer","hover")

The play() Method:

The play() method begins the hover motion:

objectName.hover.play(amplitude,angleinc,angle,cycles,orientation,speed,fn)

Examples:

mylayer.hover.play(60,8,0,1,'v',10)

The pause() and stop() Methods:

Work the same as in the circle() method.

Demo:

View hover1.html for a hover example.

Source Code

Download: hover.js
View Source: hover.js

Geometric Objects

Home Next Lesson: Path Animation
copyright 1998 Dan Steinman


Casa de Bender