Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

byHumans

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

2 Newbie

About byHumans

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Works great! Just leave the code here if someone have the same problem: Note: using UIkit3 util classes ( UIkit.util.on ) for event listeners, use addEventListener instead. util.on(prodCatBtn, 'click', function(){ gsap.to(window, { duration: 0.35, delay: .35, scrollTo: { y: ".switcher-prod", offsetY: 140 }, ease: "power2.inOut", onComplete: function(){ // refresh ScrollTrigger.refresh(); } }); }); Docs section: https://greensock.com/docs/v3/Plugins/ScrollTrigger/static.refresh()
  2. Seems that ScrollTrigger.refresh() does the job, i´m checking the docs... This is just my case. I´m tying to apply it on the scrollto onComplete callback.
  3. Hi there! I´m using the brand new Scroll Trigger plugin, it´s amazing! But i´m having a problem using it with Smooth scroll: i have a link that scroll the page to some point, but after this scroll the Scroll Trigger markers move and the animation that should be triggered doesn´t start. If not scrolled, the script works as it should. Here is the example with markers: https://byhumans.works/area/cliente/roalca/ The bottom blue section have a countdown ( gsap timeline ) that is triggered once with Scroll Trigger. Click on buttons after "Nuestros Productos" title and
×