Created
March 29, 2020 08:57
-
-
Save Oluwa-nifemi/c3843a23978d2ee53e5a57826c6368ea to your computer and use it in GitHub Desktop.
CSS to add a rotating loader inside a button with minimal css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelector('input[type=submit]').addEventListener('click', () => { | |
document.querySelector('input[type=submit]').classList.add('loading') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment