Jump to content
Search Community

apvd

Premium
  • Posts

    9
  • Joined

  • Last visited

About apvd

apvd's Achievements

  1. Hello @OSUblake, I upgraded to gsap 3.11.1, but I still see this problem, loading the page with the scroll restored by the browser breaks the pins, loading the page 'from the top position' works though, can you tell me if this fix is included in this new version? we are in the process of releasing a project and I would like to pin to an official version. thanks! Davide
  2. how can you toggle a class on a different element? like here for example on this.btn and not on the trigger element this.el, is this the best possible solution? gsap.to( this.btn, { scrollTrigger: { trigger: this.el, start: () => '-=150px', onEnter: () => this.btn.classList.add('active'), onEnterBack: () => this.btn.classList.add('active'), onLeave: () => this.btn.classList.remove('active'), onLeaveBack: () => this.btn.classList.remove('active'), end: () => '+=' + this.el.parentElement.getBoundingClientRect().height } } )
  3. Hello, we are testing scrollsmoother and for now it's working very well, will this ever support searching into the page (ctrl+f) ? thanks!
  4. awesome! is there an easy way to pull the new version through npm?
  5. Hello Jack, it seems so! another thing I'm facing is that if the initial scroll position is past the pin it doesn't initialize correctly, for now I'm working around that with window.onbeforeunload = function () { window.scrollTo(0, 0); } could that be related? I don't have time for a POC until tomorrow, is something you can test in other way or have a 'template' for this test? thank for now!
  6. Hello, in the given example, on firefox, if I resize the window the pin breaks and goes all over the place, is there a way to fix that?
  7. Hello @ZachSaucier thanks for the reply, I just noticed a wrong selector for the displacement map, this is an updated pen and probably now it works, https://codepen.io/drc0/pen/abbWdry sorry and thanks again!
  8. Hello, I'm trying to recreate this effect https://tympanus.net/Development/DistortedButtonEffects/ (example button 8 https://github.com/codrops/DistortedButtonEffects/blob/e45285afb2a3a8b4cb31fe6c0c069880f17c05d2/js/main.js#L306 ) for a custom app, in chrome the animations stops midway and I don't know why. Can anyone figure out what is going on? thanks
×
×
  • Create New...