How To Animate Button Icon During Form Submit - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

How To Animate Button Icon During Form Submit

GM

George Mavrommatis

SP Page Builder 2 days 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

0
2 Answers
GM
George Mavrommatis
Accepted Answer
2 days ago #211836

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

0
Toufiq
Toufiq
Accepted Answer
Senior Staff 2 days ago #211835

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

0