GilesP
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by GilesP
-
-
Thanks Jack! Adding it via callback inside the stagger makes a lot of sense.
-
Hi all
I've got a little animation with images sliding in and out one after another. What I'm trying to figure out is how I can have the next image always slide up above the previous one (see the transition between the 3rd image back to the 1st image)? I've tried animating the z-index but that seems to result in it sort of just magically disappearing halfway through the transition. Any other way to change the stacking context I should be animating?
See the Pen poLOrbe by gpartington (@gpartington) on CodePen
new matchMedia with scrollTrigger direction throwing an error on resize
in GSAP
Posted
Hi, I'm trying out the new matchMedia feature.
I have a scroll triggered animation that reveals text sections as you scroll up and down. It checks for the direction of the scroll and inverts which element fades in or out.
I am trying to only have this run on large screen sizes, which works as expected, but if you resize the window below the matched media query, it throws the error "Uncaught TypeError: Cannot read properties of null (reading 'direction')" and the tween does not get reverted.
Should I be using some kind of callback or cleanup function to revert that part of the timeline
Thanks!
See the Pen YzLzyqZ by gpartington (@gpartington) on CodePen