Share Posted September 21, 2015 So, I was hoping to get the red square swinging in from the left followed by the Upper Title and Lower Title coming in from left and right. However, the css autoalpha on the TweenMax.from for upper title and lower title is not starting off at 0; therefore, the final state of the upper and lower title is seen, then it disappears and starts the from animation where both swing in? Not sure why this is happening as I am a just starting out in GSAP. See the Pen xwOXjG by jstafford (@jstafford) on CodePen Link to comment Share on other sites More sharing options...
Share Posted September 21, 2015 Take a look here, you can simplify the code quite a bit, and the results are (I believe) what you are looking for. See the Pen VvjMoW by anon (@anon) on CodePen 1 Link to comment Share on other sites More sharing options...
Author Share Posted September 21, 2015 Hi Shaun. Yes, much more elegant code than mine. Still a little unsure why the autoalpha wasn't working the way I wrote it, but I am still learning the API. Thank you very much for your help on this. 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