mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
Spinner Rotateplane now available
Spinner from: https://tobiasahlin.com/spinkit/
This commit is contained in:
parent
a74fac4cbf
commit
55d0f0bacd
3 changed files with 45 additions and 0 deletions
6
client/components/main/spinner_rotateplane.jade
Normal file
6
client/components/main/spinner_rotateplane.jade
Normal file
|
@ -0,0 +1,6 @@
|
|||
template(name="spinnerRotateplane")
|
||||
.sk-spinner.sk-spinner-rotateplane(class=currentBoard.colorClass)
|
||||
+spinnerRotateplaneRaw
|
||||
|
||||
template(name="spinnerRotateplaneRaw")
|
||||
.sk-rotateplane1
|
38
client/components/main/spinner_rotateplane.styl
Normal file
38
client/components/main/spinner_rotateplane.styl
Normal file
|
@ -0,0 +1,38 @@
|
|||
@import 'nib'
|
||||
|
||||
// From https://github.com/tobiasahlin/SpinKit
|
||||
.sk-spinner-rotateplane {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
text-align: center;
|
||||
|
||||
margin: 100px auto;
|
||||
-webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
|
||||
animation: sk-rotateplane 1.2s infinite ease-in-out;
|
||||
|
||||
div {
|
||||
background-color: #333;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
@-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 {
|
||||
0% {
|
||||
transform: perspective(120px) rotateX(0deg) rotateY(0deg);
|
||||
-webkit-transform: perspective(120px) rotateX(0deg) rotateY(0deg)
|
||||
} 50% {
|
||||
transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
|
||||
-webkit-transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg)
|
||||
} 100% {
|
||||
transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
|
||||
-webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
|
||||
}
|
||||
}
|
|
@ -53,5 +53,6 @@ export const ALLOWED_WAIT_SPINNERS = [
|
|||
'Bounce',
|
||||
'Cube',
|
||||
'Dot',
|
||||
'Rotateplane',
|
||||
'Wave'
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue