Nuxt/lib/app/views/loading/folding-cube.html

109 lines
2.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
}
.sk-folding-cube {
width: 40px;
height: 40px;
position: relative;
-webkit-transform: rotateZ(45deg);
transform: rotateZ(45deg);
}
.sk-folding-cube .sk-cube {
float: left;
width: 50%;
height: 50%;
position: relative;
-webkit-transform: scale(1.1);
-ms-transform: scale(1.1);
2017-08-18 13:43:50 +00:00
transform: scale(1.1);
2017-08-18 10:26:19 +00:00
}
.sk-folding-cube .sk-cube:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: <%= options.color %>;
-webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
animation: sk-foldCubeAngle 2.4s infinite linear both;
-webkit-transform-origin: 100% 100%;
-ms-transform-origin: 100% 100%;
transform-origin: 100% 100%;
}
.sk-folding-cube .sk-cube2 {
-webkit-transform: scale(1.1) rotateZ(90deg);
transform: scale(1.1) rotateZ(90deg);
}
.sk-folding-cube .sk-cube3 {
-webkit-transform: scale(1.1) rotateZ(180deg);
transform: scale(1.1) rotateZ(180deg);
}
.sk-folding-cube .sk-cube4 {
-webkit-transform: scale(1.1) rotateZ(270deg);
transform: scale(1.1) rotateZ(270deg);
}
.sk-folding-cube .sk-cube2:before {
-webkit-animation-delay: 0.3s;
animation-delay: 0.3s;
}
.sk-folding-cube .sk-cube3:before {
-webkit-animation-delay: 0.6s;
2017-08-18 13:43:50 +00:00
animation-delay: 0.6s;
2017-08-18 10:26:19 +00:00
}
.sk-folding-cube .sk-cube4:before {
-webkit-animation-delay: 0.9s;
animation-delay: 0.9s;
}
@-webkit-keyframes sk-foldCubeAngle {
0%, 10% {
-webkit-transform: perspective(140px) rotateX(-180deg);
transform: perspective(140px) rotateX(-180deg);
2017-08-18 13:43:50 +00:00
opacity: 0;
2017-08-18 10:26:19 +00:00
} 25%, 75% {
-webkit-transform: perspective(140px) rotateX(0deg);
transform: perspective(140px) rotateX(0deg);
2017-08-18 13:43:50 +00:00
opacity: 1;
2017-08-18 10:26:19 +00:00
} 90%, 100% {
-webkit-transform: perspective(140px) rotateY(180deg);
transform: perspective(140px) rotateY(180deg);
2017-08-18 13:43:50 +00:00
opacity: 0;
}
2017-08-18 10:26:19 +00:00
}
@keyframes sk-foldCubeAngle {
0%, 10% {
-webkit-transform: perspective(140px) rotateX(-180deg);
transform: perspective(140px) rotateX(-180deg);
2017-08-18 13:43:50 +00:00
opacity: 0;
2017-08-18 10:26:19 +00:00
} 25%, 75% {
-webkit-transform: perspective(140px) rotateX(0deg);
transform: perspective(140px) rotateX(0deg);
2017-08-18 13:43:50 +00:00
opacity: 1;
2017-08-18 10:26:19 +00:00
} 90%, 100% {
-webkit-transform: perspective(140px) rotateY(180deg);
transform: perspective(140px) rotateY(180deg);
2017-08-18 13:43:50 +00:00
opacity: 0;
2017-08-18 10:26:19 +00:00
}
}
</style>
<div class="sk-folding-cube">
<div class="sk-cube1 sk-cube"></div>
<div class="sk-cube2 sk-cube"></div>
<div class="sk-cube4 sk-cube"></div>
<div class="sk-cube3 sk-cube"></div>
</div>
2018-03-25 18:35:13 +00:00
<%= options.dev ? '<!-- http://tobiasahlin.com/spinkit -->' : '' %>