Tweenlite Property ——. Selector

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.