Magnetic Button Effect for Elementor, Without Code

A magnetic button moves toward the mouse cursor as it gets close, as if it were pulled by a magnet, while its text and icon drift slightly for depth. In Elementor you can add it to any native Button widget from the Advanced tab — no custom JavaScript needed.

Button
Magnetic Hover
Sign up free

Open the full-screen live demo

What is a magnetic button?

A magnetic button is a hover micro-interaction made popular by award-winning sites on Awwwards. When the cursor enters a radius around the button, the button follows it a little, then eases back to its place when the cursor leaves. A second, smaller movement on the text and icon (inner parallax) makes it feel three-dimensional.

It works because it rewards the visitor for moving toward the call to action. The button feels alive exactly where you want attention, without flashing or distracting anywhere else.

How to add a magnetic button in Elementor

  1. Add a native Elementor Button widget and style it as usual (text, link, colors, padding).
  2. Open the widget's Advanced tab and find Pro Effects – Buttons.
  3. Choose Magnetic Hover.
  4. Set the Magnet Strength (how far the button follows the cursor) and the Activation Radius (how close the cursor must be).
  5. Tune Smoothing for the response speed and Inner Parallax Strength for the drift of the text and icon.
  6. Publish and hover the button.

Because it's an extension of the native Button widget, you keep all of Elementor's own button styling, and you can apply it to buttons that already exist on your pages.

Settings you can adjust

Setting What it does Default
Magnet Strength How much the button moves toward the cursor 35%
Activation Radius Distance from the button where the effect starts 60 px
Smoothing Lerp smoothness: low = slow and floaty, high = almost instant 0.15
Inner Parallax Strength How much the text and icon drift inside the button 50%
Disable on Mobile Turns the effect off on touch devices (it's mouse-only) Yes

Presets that work

  • Very magnetic: Strength 50, Radius 100, Smoothing 0.1.
  • Subtle and classy: Strength 20, Radius 40, Smoothing 0.2.

Where to use it

  • The main call to action of a hero or pricing section.
  • Navigation buttons and icon buttons in creative portfolios.
  • Contact or Let's talk buttons at the end of an agency site.

Use it on one or two key buttons per page. When every button is magnetic, none of them stands out.

Performance and accessibility

The effect runs with a small requestAnimationFrame loop — about 5 KB of JavaScript and CSS before minification, with no animation library. It is off on mobile by default because there's no cursor to follow, and it respects the visitor's reduced motion setting.

// Try It Free

See it for yourself.

15 days of full access. Every effect, every feature, zero restrictions.

Start Free Trial
Pro Effects Hub