shrinky Posted February 5, 2020 Posted February 5, 2020 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!
mikel Posted February 5, 2020 Posted February 5, 2020 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 4
shrinky Posted February 8, 2020 Author Posted February 8, 2020 Hey, you were right. I fixed it via your syntax suggestion. Thanks! 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now