HTML5+CSS on Canvas 3D WebGL (TM) Library
 

flyHome Library Method

Short Description: Move object from current position to home

Signature: t.flyHome ()
Group: Motion
Class: transition Class
 

Makes the object move to its Home position i.e. the position of the underlying HTML element. This makes sense if the transition was created using a function like cont. transitions created with actor use the Home position as default.

The method sets the end position of the motion just like to, except that flyHome automatically uses the coordinates of associated HTML element.

Only one of flyHome, flyToElement, and to may be used once on a single transition.

Examples

var a=taccgl.actor("testimg"); a.to(a.x0,a.y0+1000,0).start();
a.cont().flyHome().start();
RUN
var a=taccgl.actor("pgMiddleColumnTable"); a.to(a.x0,0,0).start();
a.cont().flyHome().start();
RUN

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:transition.rotateHome - Rotate into home position
Previous Page: transition.position - Set Position of Object