Jump to content
Search Community

Motionpath responsiveness issue

ShikharS test
Moderator Tag

Go to solution Solved by PointC,

Recommended Posts

Hello!

In the codepen demo, I want the circle to orbit the rectangle. It works perfectly on page load. However, upon resize, despite killing the previous tween and creating a new one with updated values for the motionPath plugin, the circle moves in random directions instead of orbiting the rectangle. How can I make sure that the circle moves around the rectangle after resizing (just like how it works on page load)?

PS - I encounter this console error post resize - "Unable to preventDefault inside passive event listener due to target being treated as passive."  Could this relate to my issue?

Thanks!

See the Pen ExJzNar?editors=0010 by Shikhar007 (@Shikhar007) on CodePen

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...