How to animate button icon during form submit - Forum | JoomShaper
Solved SP Page Builder

How to animate button icon during form submit

Asked by George Mavrommatis 11 months ago Last activity 11 months ago

Hi

I am using pb pro 6.1.2. In the 'contents/Contact form' this functionality exists (when pressing the submit button the icon rotates until the form is submitted).

How can I replicate this animation in 'contents/form builder' ?

Thanks a lot for the help

Accepted answer

Marked as the solution
George Mavrommatis Asked this

I have found a work around by changing the class of the button using JS:

window.addEventListener('DOMContentLoaded', function() {
        // Select the button by its current class
        var button = document.querySelector('.fas.fa-paper-plane');

        if (button) {
            // Replace the class
            button.classList.remove('fas');
            button.classList.add('fa');
        }
    });

I hope this helps someone

1 more reply

Toufiq Senior Staff

Hi there,

Thanks for contacting us. Sorry, right now this feature/functionality is not available. But we will try to considering it for future update.

-Thanks

Log in to reply.