mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 06:43:24 +00:00
Adding loader for later use
This commit is contained in:
37
app/less/loader.less
Normal file
37
app/less/loader.less
Normal file
@@ -0,0 +1,37 @@
|
||||
@keyframes hideshow {
|
||||
0% { opacity: 0; }
|
||||
10% { opacity: 1; }
|
||||
100% { opacity: 0; }
|
||||
}
|
||||
|
||||
@keyframes inner {
|
||||
0% { opacity: 0; }
|
||||
10% { opacity: 1; }
|
||||
100% { opacity: 0; }
|
||||
}
|
||||
|
||||
@animationTime: 750ms;
|
||||
@outerTriangles: 19;
|
||||
@animationDelay: @animationTime / @outerTriangles;
|
||||
|
||||
.loader {
|
||||
|
||||
path {
|
||||
stroke: #000;
|
||||
stroke-width: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.l1 { animation: hideshow @animationTime linear infinite; }
|
||||
.l2 { animation: inner @animationTime linear infinite; }
|
||||
|
||||
.mixin-loop (@i) when (@i > 0) {
|
||||
.d@{i} {
|
||||
animation-delay: @i * @animationDelay;
|
||||
}
|
||||
.mixin-loop(@i - 1);
|
||||
}
|
||||
|
||||
.mixin-loop(@outerTriangles);
|
||||
|
||||
Reference in New Issue
Block a user