Border Magnetize-Like Effect using CSS3 and jQuery

A simple effect on borders I had time to whip up today. Forgive the dirty code (newb here!). Calculates the mouse position from the center of the circle. This is my play on the mousemove event and CSS3 transition property. Feel free to copy the code and use it for your own divs!

See the Pen Border fun by Elmer Balbin (@elmzarnsi) on CodePen.27172

Icons made by Freepik from is licensed by CC 3.0 BY
Elmer Balbin

Web developer from Bacolod, Steam Sale hunter, and casual DotA 2 player.

about me

Leave a comment

Planet KC
Planet KC

i am mindblown

Get great deals on hotel rooms from all over the world BOOK NOW