Skip to content

Instantly share code, notes, and snippets.

@reinink
Created April 17, 2018 11:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reinink/428001e4d42ce7c461972578cec23658 to your computer and use it in GitHub Desktop.
Save reinink/428001e4d42ce7c461972578cec23658 to your computer and use it in GitHub Desktop.
<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