AlexH Posted August 15, 2022 Share Posted August 15, 2022 Hello, I'm having a pretty simple issue with an svg rect's x attribute not updating after a tween. I want to be able to move the rect and get its new, updated position afterwards. Check the JavaScript code and the console to better understand the issue. Thanks for your help! See the Pen eYMQpZw by alexhoare (@alexhoare) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted August 15, 2022 Share Posted August 15, 2022 Hey there! Welcome to the forums. So this isn't a bug, you're just logging out to the console before the animation is complete. ☺️ Here you go! See the Pen jOzQbzR?editors=1011 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