Jump to content
Search Community

viktarbel

Members
  • Posts

    4
  • Joined

  • Last visited

viktarbel's Achievements

  1. Thanks, @Rodrigo. What "cancelWhenTweening" function does? And also I wanted to ask what this type of entry means: -> self => self.isActive && !scrollTween && goToSection(i) or -> scrollTween && e.preventDefault(); Does it mean that if self => self.isActive is TRUE and !scrollTween is TRUE, only then run goToSection() function? I just didn't see such type of entries before.
  2. Yes, I now about this snap functionality, but I'd like to have that smooth scroll experience, where when you scroll with your mouse then it just changes the section, without that snap delay, where you scroll, then you need to release the scroll button and after that it changes the section. Do you know why above example stopped working?
  3. Hi @mvaneijgen, Thanks for the answer. I basically want to create a full screen section scroll up and down. And I grabbed the idea from this pen owned by GreenSock: https://codepen.io/GreenSock/pen/rNLOdbB For some reason, it doesn't work there too. That's weird. And after that, I will need to make it work with anchor tags to a certain sections and ScrollToTop button.
  4. Hi there, GSAP is amazing thing, but what I created so far is not that amazing that I saw it might be ( I combined some codepens to create a full screen vertical scroll, but it doesn't work. It either jumps to the next section(s) after section scroll or doesn't work at all (just a normal scroll). And it works differently on each run. Funny thing is it works great on the dev site (I copied code from the site), but doesn't work in codepen. I try to create a more complex thing, that's why I started codepen to work on.
×
×
  • Create New...