Share Posted November 15, 2022 Hi all! I'm trying to animate the inner child of a container on hover but the issue I'm having is that the page requires multiple instances of the same class. So for instance I have a main container called "contentContainer" and within that is text with the class "words". I can't figure out how to animate the "words" of only the "contentContainer" that is being hovered over. See the Pen zYadpjz by purplehaze (@purplehaze) on CodePen Link to comment Share on other sites More sharing options...
Solution Solution Share Posted November 15, 2022 Hi @Warren_A. You can just use a loop: See the Pen qBKXooZ?editors=0010 by GreenSock (@GreenSock) on CodePen Happy tweening. Link to comment Share on other sites More sharing options...
Author Share Posted November 15, 2022 Thanks @GreenSock! I've been working on it for the last hour and got so close but you beat me to it... this is perfect Link to comment Share on other sites More sharing options...
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