(This page includes affiliate links. If you click and purchase, I receive a small commission at no extra cost from you and that way you can support me. I only recommend tools that I have personally used and loved.)
Tutorial Video:
Introduction – Magnetic Hover Effect in Elementor
In this tutorial, we will make our elements like buttons, containers etc. into magnetic pull effect when we hover on them.
Based on the code found here in codepen – https://codepen.io/avathiery/pen/QwGyVdZ
I converted above code to work on multiple elements and elementor buttons.
Magentic Pull Code
- dm-magnetic-item is the CSS class of the elements that can be pulled.
- elementor-button-text is the CSS class that elementor gives it buttons text. You can try adding this CSS class to text inside your dm-magnetic-item but it could lead to styling issues. So test it first.
