Jump to content
Search Community

Replicate bouncing and slight movement(even if there’s no any event) of shapes on mouse click and hover

rakshu
Moderator Tag

Recommended Posts

Posted

Hi everyone, Please check “Let’s work together” section in lusion.co/projects(scroll down). And I want to create the same replica of that section. That those shapes, and those shapes should be slightly moving even if there’s no event and on hover and on click those shapes should bounce.

Have pasted the image for reference.

Thank You IMG-20240705-WA0006.thumb.jpg.be62e4cbeff22b43d405f6b31d0dd87f.jpg

Posted

Hi there - Lusion are very vocal about their distaste for their work being copied without permission and I don't want to contribute to that!

 

That being said, this *sort* of thing is physics based and you could look at matter.js as a starting point for something similar.

 

Posted

Yeah, as Cassie mentions this is mostly about physics and interaction between elements, which is not really simple. Here is the link to matter.js page, which would be my first attempt at something like this:

https://brm.io/matter-js/

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...