Created
April 17, 2018 11:28
-
-
Save reinink/428001e4d42ce7c461972578cec23658 to your computer and use it in GitHub Desktop.
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
<style type="text/css"> | |
.spinner, | |
.spinner:after { | |
border-radius: 50%; | |
width: 1.5em; | |
height: 1.5em; | |
} | |
.spinner { | |
font-size: 10px; | |
position: relative; | |
text-indent: -9999em; | |
border-top: .2em solid #a7a199; | |
border-right: .2em solid #a7a199; | |
border-bottom: .2em solid #a7a199; | |
border-left: .2em solid transparent; | |
-webkit-transform: translateZ(0); | |
-ms-transform: translateZ(0); | |
transform: translateZ(0); | |
-webkit-animation: loading 1s infinite linear; | |
animation: loading 1s infinite linear; | |
} | |
@keyframes loading { | |
0% { | |
-webkit-transform: rotate(0deg); | |
transform: rotate(0deg); | |
} | |
100% { | |
-webkit-transform: rotate(360deg); | |
transform: rotate(360deg); | |
} | |
} | |
</style> | |
<template> | |
<div class="flex items-center"> | |
<div class="spinner"></div> | |
<div class="ml-1 text-sm font-sans-alt font-medium text-grey-600"> | |
<slot></slot> | |
</div> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment