mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
Adds gradient animation to library scan progress bars
This commit is contained in:
1 parent
4f6d8855b1
commit
5548164658
1 file changed
+28
@@ -55,9 +55,23 @@
|
|||||||
.scan-progress-job > div {
|
.scan-progress-job > div {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: #4CAF50;
|
background: #4CAF50;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
transition: width 0.3s ease;
|
transition: width 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.scan-progress-total > div::after,
|
||||||
|
.scan-progress-job > div::after {
|
||||||
|
content: '';
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: -100%;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background: linear-gradient( 90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100% );
|
||||||
|
animation: progress-pulse 8s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
.icon-groups {
|
.icon-groups {
|
||||||
flex: 0 0 auto; /* prevent shrinking */
|
flex: 0 0 auto; /* prevent shrinking */
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -97,6 +111,20 @@
|
|||||||
height: 20px;
|
height: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@keyframes progress-pulse {
|
||||||
|
0% {
|
||||||
|
left: -100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
15% {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
left: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div style="display: grid; grid-template-rows: auto 1fr;"><!--container with two rows, one fixed, one filling remaining space-->
|
<div style="display: grid; grid-template-rows: auto 1fr;"><!--container with two rows, one fixed, one filling remaining space-->
|
||||||
|
|||||||
Reference in new issue
Block a user