How to add a spinning load SVG to a form submit button?

Hi, I’m pretty new to Shopify and Liquid, and was wondering if there’s a way to add a spinning load SVG when you click “submit” on a form, and then remove it again when it’s done submitting.