Share Posted February 5, 2017 Hello, I have a websocket project I'm working on. When a user joins the site they get a div created for them with an icon as background image. I have a function that runs on DOMContentLoaded that creates fake user divs and wanted to build a timeline of animation moving them around via the X and Y properties in TweenLite. I am really stuck scratching my head - my TimelineMax produces console logs on Update() but nothinggggg moves. I could really appreciate a second pair of eyes! I've distilled the function in question down to a codepen. Thank you in advance! Stephen See the Pen ygEjgL by tetreault (@tetreault) on CodePen Link to comment Share on other sites More sharing options...
Share Posted February 5, 2017 HI tetreault Welcome to the GreenSock forum. You're only loading TweenLite so you'll also need the CSS Plugin: <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.1/plugins/CSSPlugin.min.js"></script> If you were loading TweenMax, that plugin would be loaded by default. TweenMax includes: TweenLite TweenMax TimelineLite TimelineMax CSSPlugin AttrPlugin RoundPropsPlugin DirectionalRotationPlugin BezierPlugin EasePack That should get things working for you. Happy tweening. 2 Link to comment Share on other sites More sharing options...
Author Share Posted February 5, 2017 OMG. Face-freaking-palm. I've used Greensock for a while now and usually use TweenMax. I'm not sure why I decided to use TweenLite this time, but I was unaware you needed the CSSPlugin. Must have really not been paying attention. That resolves it, thanks! 2 Link to comment Share on other sites More sharing options...
Share Posted February 5, 2017 It happens to all of us. Glad to hear it's all working for you now. Happy tweening. 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