Tweenlite.selector: * = document.getElementById ()
Tweenlite selection Tool: Used when an element is selected as the target, for example: Tweenlite.to ("#myID", 1, {x: "100px"}), which means: Select an element with ID MyID.
Detailed Description:
JQuery, Zepto, Sizzle, and even your own can be used in tweenlite.
Just set this up:
Tweenlite. = Your_selector_engine;
If you load jquery, you can use the class value to select an element, for example:
Tweenlite. To(". MyClass",2,{Boxshadow:"0px 0px 20px Red", color :"#FC0"});
If jquery is not loaded, you can use the ID value to select an element, for example:
tweenlite. To ( "#myClass" , 2, {boxshadow: "0px 0px 20px Red" , Color: "#FC0"
When you need to select elements multiple times, you can make the selection a bit quicker (in the case of jquery loading):
VarTarget=$(". MyClass");tweenlite. (target, 2 , {left: "100px" tweenlite. (target, 2 , {top: "200px" , Delay:2
Tweenlite Property ——. selector