Share Posted November 29, 2015 Hi guys I'm stumped on trying to figure this out: fading in an image and moving it from left (or from anywhere) at the same time. I don't know why it's eluding me and am hoping you can lead me in the correct direction. I created a simple codepen for this. I think I am confusing my syntax here or missing something basic. thanks! See the Pen jbgqLj by nushi (@nushi) on CodePen Link to comment Share on other sites More sharing options...
Share Posted November 29, 2015 Hi coco pls try like this : .fromTo(".img",1,{opacity:0,x:-30},{opacity:1,x:100}); // or .fromTo(".img",1,{autoAlpha:0,x:-30},{autoAlpha:1,x:100}); pls check CSSPlugin Doc. : http://greensock.com/docs/#/HTML5/Plugins/CSSPlugin/ you don't need to use css:{} wrapper , but if want ; 'x' property should be in css wrapper 1 Link to comment Share on other sites More sharing options...
Author Share Posted November 29, 2015 Hi Diaco! Thank you.. I really screwed that one up.. It's so simple! 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