Nuxt/lib/app/views/loading/three-bounce.html

62 lines
1.2 KiB
HTML
Raw Normal View History

2017-08-18 10:26:19 +00:00
<style>
body, html, #<%= globals.id %> {
background: <%= options.background %>;
2017-08-18 10:26:19 +00:00
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 {
width: 70px;
text-align: center;
}
.spinner > div {
width: 18px;
height: 18px;
background-color: <%= options.color %>;
border-radius: 100%;
display: inline-block;
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}
.spinner .bounce1 {
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}
.spinner .bounce2 {
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}
@-webkit-keyframes sk-bouncedelay {
0%, 80%, 100% { -webkit-transform: scale(0) }
40% { -webkit-transform: scale(1.0) }
}
@keyframes sk-bouncedelay {
2017-08-18 13:43:50 +00:00
0%, 80%, 100% {
2017-08-18 10:26:19 +00:00
-webkit-transform: scale(0);
transform: scale(0);
2017-08-18 13:43:50 +00:00
} 40% {
2017-08-18 10:26:19 +00:00
-webkit-transform: scale(1.0);
transform: scale(1.0);
}
}
</style>
<div class="spinner">
<div class="bounce1"></div>
<div class="bounce2"></div>
<div class="bounce3"></div>
</div>
2018-03-25 18:35:13 +00:00
<%= options.dev ? '<!-- http://tobiasahlin.com/spinkit -->' : '' %>