Share Posted August 9, 2022 hello friends, i'm new to gsap and to react also. so my question might be a little too simple. i was trying to recreate these box example on react but the way it selects multiple elements on the example only works for components, let's say i want to tween a group of texts inside a div with a ref, how should i declare it? See the Pen rNmzEGd by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
Share Posted August 9, 2022 The demo is working the way you expect, right? You forgot to provide a demo of your setup, right? I read your post a few times and I'm not quite sure what you're asking. You want to animate the <h2> and the <p> in your markup or something? It'd be SUPER helpful if you could provide a minimal demo Here's React starter template on CodeSandbox that you could fork and edit. Once we see an isolated demo, we'll do our best to jump in and help with your GSAP-specific questions. 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