Posted
·
Edited by durratino upd: trigger positions do NOT update on window resize if the elements were initially hidden with display: none
Hello there and thank you for this wonderful plugin!
I'm using the recent 3.11 version, but still getting the "ScrollTrigger.clearScrollMemory is not a function" error. As I understand, this function is exactly what I need: I'm filtering elements on the page with display: none, and when they are shown with display: block, their triggers are still at the start of the page, as if they are still not displayed. I'm calling ScrollTrigger.refresh(true), but it doesn't seem to update the trigger positions.
Reset ScrollTrigger on refresh
in GSAP
Posted · Edited by durratino
upd: trigger positions do NOT update on window resize if the elements were initially hidden with display: none
Hello there and thank you for this wonderful plugin!
I'm using the recent 3.11 version, but still getting the "ScrollTrigger.clearScrollMemory is not a function" error. As I understand, this function is exactly what I need: I'm filtering elements on the page with display: none, and when they are shown with display: block, their triggers are still at the start of the page, as if they are still not displayed. I'm calling ScrollTrigger.refresh(true), but it doesn't seem to update the trigger positions.