-
- 932 Posts
Your form shouldn't be taking that long to send unless the user is uploading files?
You can easily add in an animating spinner or anything else though by just creating a hidden div with the animation and then use some javascript/jquery to display when clicking the submit button. For example... (may not work)
CSS:
#submitting{
background: rgba(0,0,0,0.8);
text-align: center;
color: #fff;
font-size: 40px;
line-height: 40px;
display: flex;
align-items: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
z-index: 500;
}
HTML
<aside id="submitting">
<small>Submitting...Put in anything here.</small>
</aside>
JS
$('#submit').click(function(event) {
$('#submitting').fadeIn();
});