Nuxt/packages/vue-app/template/views/loading/wandering-cubes.html

69 lines
1.8 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: 40px;
height: 40px;
position: relative;
}
.cube1, .cube2 {
background-color: <%= options.color %>;
width: 15px;
height: 15px;
position: absolute;
top: 0;
left: 0;
2017-08-18 13:43:50 +00:00
2017-08-18 10:26:19 +00:00
-webkit-animation: sk-cubemove 1.8s infinite ease-in-out;
animation: sk-cubemove 1.8s infinite ease-in-out;
}
.cube2 {
-webkit-animation-delay: -0.9s;
animation-delay: -0.9s;
}
@-webkit-keyframes sk-cubemove {
25% { -webkit-transform: translateX(42px) rotate(-90deg) scale(0.5) }
50% { -webkit-transform: translateX(42px) translateY(42px) rotate(-180deg) }
75% { -webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5) }
100% { -webkit-transform: rotate(-360deg) }
}
@keyframes sk-cubemove {
2017-08-18 13:43:50 +00:00
25% {
2017-08-18 10:26:19 +00:00
transform: translateX(42px) rotate(-90deg) scale(0.5);
-webkit-transform: translateX(42px) rotate(-90deg) scale(0.5);
2017-08-18 13:43:50 +00:00
} 50% {
2017-08-18 10:26:19 +00:00
transform: translateX(42px) translateY(42px) rotate(-179deg);
-webkit-transform: translateX(42px) translateY(42px) rotate(-179deg);
2017-08-18 13:43:50 +00:00
} 50.1% {
2017-08-18 10:26:19 +00:00
transform: translateX(42px) translateY(42px) rotate(-180deg);
-webkit-transform: translateX(42px) translateY(42px) rotate(-180deg);
2017-08-18 13:43:50 +00:00
} 75% {
2017-08-18 10:26:19 +00:00
transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
-webkit-transform: translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);
2017-08-18 13:43:50 +00:00
} 100% {
2017-08-18 10:26:19 +00:00
transform: rotate(-360deg);
-webkit-transform: rotate(-360deg);
}
}
</style>
<div class="spinner">
<div class="cube1"></div>
<div class="cube2"></div>
</div>
2018-03-25 18:35:13 +00:00
<%= options.dev ? '<!-- http://tobiasahlin.com/spinkit -->' : '' %>