Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
shrinky

Targeting nested elements

Recommended Posts

Hi, I'm trying to perform some changes to the margins on an unordered list. I've tried using the following selection string to target those list items, but it makes Greensock break. Anyone have any idea on a solution for this?

 

appearingTextT1.to("#panel2-2-text1 ul li", 3, { margin-top: 0});

 

Thanks! Loving Greensock thus far!

Share this post


Link to post
Share on other sites

Hey @shrinky,

 

Welcome to the GreenSock Forum.

 

Note: A common mistake is to forget to use camel case representations of the properties, so instead of “font-size”, you’d use “fontSize”. “background-color” should be “backgroundColor”.

 

Try it. If you have problems ...  please your case as CodePen.

 

Happy tweening

Mikel

  • Like 4

Share this post


Link to post
Share on other sites

Hey, you were right. I fixed it via your syntax suggestion. Thanks!

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×