Jump to content
Search Community

zɛd

Members
  • Posts

    2
  • Joined

  • Last visited

zɛd's Achievements

  1. Appreciate it! Thanks for the reply.
  2. I'm trying to create this animation. And here is my Code Sandbox If you want to see the carousel working, you could just comment off the opacity in Car and CarDesc styled-component. I'm getting the error GSAP target undefined not found. I'm not sure why it couldn't find the target even though the correct value of index has been passed. When click on the arrow (either left or right) I want the other car to appear from right and the old car to disappear to left. And the heading to the top or bottom (doesn't matter that much tho) initialCarAnimation() is the function that brings the car from right and text from the top. carousel.current[index] is for the heading carRef.current[index] is for the car I believe I'm almost there its just the GSAP couldn't find the element that I want to animate. Please any help would be appreciated
×
×
  • Create New...