fix: animate on item load

This commit is contained in:
diptanilsaha
2026-01-08 21:35:55 +05:30
parent 02cefa8bdb
commit 4d8d29b0df
2 changed files with 65 additions and 16 deletions

View File

@@ -117,6 +117,35 @@
overflow-y: scroll;
overflow-x: hidden;
&.item-loading {
position: relative;
pointer-events: none;
}
&.item-loading::after {
content: "";
position: absolute;
inset: 0;
background: repeating-linear-gradient(
90deg,
#f3f3f3 0px,
#f3f3f3 160px,
#e9ecef 160px,
#e9ecef 320px
);
animation: skeletonMove 1.1s linear infinite;
z-index: 1;
}
@keyframes skeletonMove {
from {
background-position: 0 0;
}
to {
background-position: 320px 0;
}
}
&.items-not-found {
display: flex;
align-items: center;