Gravitational Mouse Attraction

Let's explore the mouse interaction seen in the footer of! It's a fun and simple physics simulation involving the forces of gravity and gravitational attraction between the red circle and the user's mouse position anytime the mouse is moved. I think adding physics to your web pages can bring a lot of fun and joy to a website and p5.js combined with Webflow makes that pretty easy!

Watch the Tutorial on YouTubeGet the Project Cloneable

Inside <head> tag

Inside </body> tag