Jump to content
Search Community

Targeting individual svg elements for hover effect

soma test
Moderator Tag

Recommended Posts

I've made an SVG image with several different objects. The interaction would be this:
- If you hover an element there would be a small effect on this element. (a scale, rotate and move depending on the mouse position.)
- If you hover out the element get back to the original position.
Currently, I have a problem with the targeting, the effect animates all the elements in the SVG. ...And some with the mouse position tracking:)
How can I solve this? 
Thanks for the help in advance :)

See the Pen ExQWZem by szsoma (@szsoma) 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...