Jump to content
GreenSock

Jncocontrol

Members
  • Posts

    8
  • Joined

  • Last visited

Jncocontrol's Achievements

2

Reputation

  1. That did the trick. I don't know what I was thinking, should've been obvious. Much Appreciated.
  2. I tried doing that, but didn't work. Perhaps I did it wrong. How do i achieve it?
  3. Hi, i'm making a project (I don't even know what i'm doing to be honest....) but as I switch between routes my index has gsap and ScrollTrigger on it and another route doesn't have that. as I move from the index to fashion I notice it applies the pin-spacer on my page. I tried to do a little trickery by just giving the pin-spacer a display of none. but that break the entire thing. Anyhow, I've attached my project. Just 'npm i' and go to fashion page, back to index, and back to fashion. https://mega.nz/file/5YYEibiJ#athvQYNm9NTqMtXuH3rxZl_2ASfk_o23l4n5iE533Gs
  4. That did the trick. Much Appreciated. One more question - In my project i have 3 sections, and I'd like to run the scrollTrigger each time I cross the trigger. But I think it has something to do with it being in a function (I have to unfortunately run it this way). And since it only run once, how can I achieve the result I desire? EDIT: I was able to figure it out. Disregard this.
  5. What I mean by individually, is when i pass a threshold on the trigger, it'll trigger all the elements rather than doing it for each trigger. If that makes any sense. BTW, i'm using svelte, I don't think it should mean much, but if it does. Furthemore, i have a onMount in my index route. here is my code if it means anything. For a video here is one on my Mega Account. https://mega.nz/file/BFojTIwI#LQ9EjNKaXGa3HTzktox6HoDJAU1IOf_UV5qJn3lOzK0
  6. That worked, thanks .I swore I did that before I came here and posted this thread. But, nonetheless I appreciate the help.
  7. Hi everyone, i've been trying to implement scrollTrigger and gsap into my most recent project. However, I keep getting this error I have it all imported But still won't work. Any help would be apprecaited.
×