Jump to content
GreenSock

immy77

Move Div on mouse hover

Recommended Posts

Hey immy and welcome to the GreenSock forums.

 

This sort of effect will take some custom logic. How I would approach it:

  • Record the x and y distances of each circle in respect to each other on load (and recalculate them every resize).
  • When one circle is hovered, move each of the other circles away from the hovered one based on the x and y distances that you have recorded.

Does that make sense?

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