HTML5 Canvas 3D WebGL (TM) js Library
 

mapElement Library Method

Short Description: Map other HTML element

Signature: t.mapElement (el)
Group: Texture
Class: transition Class
 

Maps an image of the given element on the current transition. Works like mapActor but does not paint the element. el may be a DOM node or a string giving the id of the intended element.

Examples

var b=taccgl.actor('logoimg');
var a=taccgl.actor("testimg").mapElement("logoimg").start();
RUN

WebGL™ is a trademark of the Khronos Group Inc.

Next Page:transition.map - Map rectangular portion of texture canvas
Previous Page: transition.mapActor - Map other HTML element and paint