Nuxt/lib/app/views/loading/chasing-dots.html

69 lines
1.4 KiB
HTML
Raw Normal View History

2017-08-18 10:26:19 +00:00
<style>
body, html, #__nuxt {
background-color: <%= options.background %>;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
2017-08-18 13:43:50 +00:00
margin: 0;
padding: 0;
2017-08-18 10:26:19 +00:00
}
.spinner {
margin: 100px auto;
width: 40px;
height: 40px;
position: relative;
text-align: center;
2017-08-18 13:43:50 +00:00
2017-08-18 10:26:19 +00:00
-webkit-animation: sk-rotate 2.0s infinite linear;
animation: sk-rotate 2.0s infinite linear;
}
.dot1, .dot2 {
width: 60%;
height: 60%;
display: inline-block;
position: absolute;
top: 0;
background-color: <%= options.color %>;
border-radius: 100%;
2017-08-18 13:43:50 +00:00
2017-08-18 10:26:19 +00:00
-webkit-animation: sk-bounce 2.0s infinite ease-in-out;
animation: sk-bounce 2.0s infinite ease-in-out;
}
.dot2 {
top: auto;
bottom: 0;
-webkit-animation-delay: -1.0s;
animation-delay: -1.0s;
}
@-webkit-keyframes sk-rotate { 100% { -webkit-transform: rotate(360deg) }}
@keyframes sk-rotate { 100% { transform: rotate(360deg); -webkit-transform: rotate(360deg) }}
@-webkit-keyframes sk-bounce {
0%, 100% { -webkit-transform: scale(0.0) }
50% { -webkit-transform: scale(1.0) }
}
@keyframes sk-bounce {
2017-08-18 13:43:50 +00:00
0%, 100% {
2017-08-18 10:26:19 +00:00
transform: scale(0.0);
-webkit-transform: scale(0.0);
2017-08-18 13:43:50 +00:00
} 50% {
2017-08-18 10:26:19 +00:00
transform: scale(1.0);
-webkit-transform: scale(1.0);
}
}
</style>
<div class="spinner">
<div class="dot1"></div>
<div class="dot2"></div>
</div>
2017-08-18 13:43:50 +00:00
<!-- http://tobiasahlin.com/spinkit -->