Jump to content
Search Community

Scrolltrigger react issues in pin

Mohd Ahmad test
Moderator Tag

Recommended Posts

Hey Mohd.

I'm not really sure where to start with this demo - sorry. There's a huge amount going on, several sections, text animations and a few pins plus an image spinning around in 3D space. Could you explain a little more clearly what we're meant to be looking at and what the 'layout issues' are?

 

Link to comment
Share on other sites

I work with react and GSAP quite a lot recently and I can't say that I 've ever seen someone structure a project like this. In general you want to avoid using class selectors in react and opt for react refs. You still can use class selectors, but it would be better to use some built in gsap functionality with gsap.utils.selector(). You should also be splitting your functionality into different components. There's not need to import a massive file on animations when you can let each section manage their animations independently.

Aside from that, it's true that your demo isn't very helpful.

  • Like 1
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...