Skip to content

Commit

Permalink
Add loader-grid
Browse files Browse the repository at this point in the history
  • Loading branch information
jolaleye committed Apr 27, 2019
1 parent 0264275 commit ff819dc
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions effects/loader-grid.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<template>
<div class="dots">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</template>

<style scoped>
.dots {
width: 3em;
height: 3em;
display: grid;
grid-template-rows: repeat(3, 1fr);
grid-template-columns: repeat(3, 1fr);
justify-items: center;
align-items: center;
}
.dots > div {
width: 0.5em;
height: 0.5em;
background-color: #3cefff;
border-radius: 50%;
animation: fade 1.5s alternate ease-in-out infinite;
}
.dots > div:nth-of-type(2),
.dots > div:nth-of-type(4) {
animation-delay: 0.25s;
}
.dots > div:nth-of-type(3),
.dots > div:nth-of-type(5),
.dots > div:nth-of-type(7) {
animation-delay: 0.5s;
}
.dots > div:nth-of-type(6),
.dots > div:nth-of-type(8) {
animation-delay: 0.75s;
}
.dots > div:nth-of-type(9) {
animation-delay: 1s;
}
@keyframes fade {
to {
opacity: 0.2;
}
}
</style>

0 comments on commit ff819dc

Please sign in to comment.