Jump to content
GreenSock

GilesP

ShockinglyGreen
  • Posts

    3
  • Joined

  • Last visited

About GilesP

GilesP's Achievements

  1. 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!
  2. Thanks Jack! Adding it via callback inside the stagger makes a lot of sense.
  3. 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?
×