Messy conversion from custom transition functions to GSAP