Nuxt/packages/vue-app/template/views/loading/rotating-plane.html

45 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: 40px;
height: 40px;
background-color: <%= options.color %>;
-webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
animation: sk-rotateplane 1.2s infinite ease-in-out;
}
@-webkit-keyframes sk-rotateplane {
0% { -webkit-transform: perspective(120px) }
50% { -webkit-transform: perspective(120px) rotateY(180deg) }
100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) }
}
@keyframes sk-rotateplane {
2017-08-18 13:43:50 +00:00
0% {
2017-08-18 10:26:19 +00:00
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
2017-08-18 13:43:50 +00:00
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
} 50% {
2017-08-18 10:26:19 +00:00
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
2017-08-18 13:43:50 +00:00
-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
} 100% {
2017-08-18 10:26:19 +00:00
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
}
}
</style>
<div class="spinner"></div>
2018-03-25 18:35:13 +00:00
<%= options.dev ? '<!-- http://tobiasahlin.com/spinkit -->' : '' %>