(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:
Don’t want to make from scratch? Get the template instead 🙂
Introduction – Button Fill with Elementor and javascript
In this tutorial, we will create button that fill up with color from the cursor location on hover. You can use it on any number of buttons in the same page.
LET'S BUILD SOMETHING GREAT TOGETHER
Get in touch
Button Fill Hover Effect Code
- dm-interactive-btn is the CSS class of the container that is going to be our button. This container can include text or any other widget.
- dm-interactive-btn-circle is the CSS class of the inner circle container. This container expands to fill up and make the button look like it’s filling up.
- dm-interactive-btn-text is the CSS class of the text inside button. This is needed to change the text color on hover.
- dm-interactive-btn-arrow is optional CSS class that is added to icon (example:arrow) that rotates a bit on hover.


