xoxoxoxo Posted January 18, 2020 Share Posted January 18, 2020 I'm trying to group animations for different elements and it doesn't seem to move other elements except the first one on the chain: const tl = gsap.timeline({ defaults: { ease: 'back.out', duration: 1.5, force3D: 'auto' } }) .to('.el-1', { translateY: -$(splash).height() }) .to('.el-2', { opacity: 0 }) .pause(); t1.progress(count); The second element ".el-2" doesn't seem to tween. I have to create a seperate timeline. Is there a way I can chain diff elements and control it with one variable? 1 Link to comment Share on other sites More sharing options...
ZachSaucier Posted January 18, 2020 Share Posted January 18, 2020 Hey nullhook and welcome to the GreenSock forums! Please create a minimal demo of this error so that we can make sure to find any bugs that may exist. I am unable to recreate it given the code that you provided: See the Pen qBEJKGv?editors=0010 by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now