keanureefs
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by keanureefs
-
-
Zach,
Thanks. Yeah you are right. The example posted here seems to work just fine mainly because the height of the embed is static. I think if you 'edit on codepen' and change the height of the window then you'll see what I mean. All in all, it works fine until the window's height is changed by dragging it. That's when the calculations for the sprite sheet and the size of the scrub area misalign.
Thanks again.
j
-
Hello Forum...thanks for the help.
I'm scrubbing through a background image sprite sheet on scroll in the example given. All seems to work out fine except if the user resizes windows, then the values for some of the sizing and sequencing are not updated so the scrubbing misaligns. Im probably missing something here but wondering if these variables can be updated. I realize it might cost performance wise but am looking for suggestions. I tried
kill()
andrestart()
as well asrefresh()
on ScrollTrigger but to no avail. I definitely feel like I am missing something here.While on the topic, I might be able to save myself some pain and scrub through actual video? Is this possible using ScrollTrigger? To scrub through an mp4 or webm using the video tag? Thanks!
See the Pen OJMZdJj by onetimeuser (@onetimeuser) on CodePen
Update Values of Gsap and ScrollTrigger on resize?
in GSAP
Posted
Ahhhhh, brilliant. Thanks, Zach. So helpful! 🙏