Created
October 11, 2022 01:34
-
-
Save adeleke5140/58af2b6961c8da1a598f5a27ef2cd0f0 to your computer and use it in GitHub Desktop.
Styling for basic spinner
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
<template> | |
<div class="spin"></div> | |
</template> | |
<style> | |
.spin{ | |
display: block; | |
width: 40px; | |
height: 40px; | |
margin: 30px auto; | |
border: 3px solid transparent; | |
border-radius: 50%; | |
border-top-color: #ff8800; | |
animation: spin 1s ease infinite; | |
} | |
@keyframes spin{ | |
to{ transform: rotateZ(360deg)} | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment