Skip to content

Instantly share code, notes, and snippets.

@web-crab
Created July 8, 2019 19:30
Show Gist options
  • Save web-crab/c3e80d670bbe349735d67f78506ca134 to your computer and use it in GitHub Desktop.
Save web-crab/c3e80d670bbe349735d67f78506ca134 to your computer and use it in GitHub Desktop.
<template functional>
<div class="loader">
<div></div>
<div></div>
<div></div>
</div>
</template>
<style>
@keyframes loader {
to {
opacity: 0.25;
transform: translate3d(0, -1rem, 0);
}
}
.loader {
display: flex;
justify-content: center;
}
.loader > div {
width: 1rem;
height: 1rem;
margin: 3rem 0.2rem;
background: #8385aa;
border-radius: 50%;
animation: loader 0.6s infinite alternate;
}
.loader > div:nth-child(2) {
animation-delay: 0.2s;
}
.loader > div:nth-child(3) {
animation-delay: 0.4s;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment