Vigil007 Posted May 17, 2021 Share Posted May 17, 2021 Hi Everyone, I facing an issue or bug, I tried created a quick demo for a simple MotionPathPlugin in the webpack I uploaded in attached, unfortunately the element is not align to the path. As you can see the circle (element) is not align to the square ( svg path ). I tried to figure out for long but still not working , I'm stuck here, sincerely someone can help about this. demo-motionpath.zip Link to comment Share on other sites More sharing options...
OSUblake Posted May 17, 2021 Share Posted May 17, 2021 Hi, can you create a minimal demo? 1 Link to comment Share on other sites More sharing options...
GreenSock Posted May 18, 2021 Share Posted May 18, 2021 Yeah, I very quickly copied your code over into a CodePen and it seems to work fine: See the Pen wvJzyOJ?editors=0010 by GreenSock (@GreenSock) on CodePen Must be something with your setup(?) Are you sure that code is running AFTER the elements have been rendered in the browser? 2 Link to comment Share on other sites More sharing options...
Vigil007 Posted May 18, 2021 Author Share Posted May 18, 2021 Ya, kind of weird, it's working fine in CodePen, the code sequence is render correctly. 😞 Link to comment Share on other sites More sharing options...
Vigil007 Posted May 18, 2021 Author Share Posted May 18, 2021 I think i will be able to fix it by doing some trick like setTimeout for that code , make sure the elements have been rendered in browser, thanks for the hints. 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