Jump to content
Search Community

Targeting nested elements

shrinky test
Moderator Tag

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!

Link to comment
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


  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...