Skip to content

Commit fafffc9

Browse files
committed
Add placeholder animation
1 parent 64be373 commit fafffc9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/css/ui/components/placeholder.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
.placeholder.placeholder_intensity_subdued {
22
opacity: 0.3;
3+
animation: placeholder-loading_subdued 1s linear infinite alternate;
34
}
45

56
.placeholder.placeholder_intensity_normal {
67
opacity: 0.6;
8+
animation: placeholder-loading_normal 1s linear infinite alternate;
79
}
810

911
.placeholder.placeholder_intensity_emphasized {
1012
opacity: 1;
13+
animation: placeholder-loading_emphasized 1s linear infinite alternate;
1114
}
1215

1316
/* -- Placeholder.Text ------------------------------------------------ */
@@ -68,3 +71,30 @@
6871
.placeholder.placeholder_text.placeholder_length_huge {
6972
--c-length_placeholder_text: var(--c-length_placeholder_text_huge);
7073
}
74+
75+
@keyframes placeholder-loading_subdued {
76+
0% {
77+
opacity: 0.1;
78+
}
79+
100% {
80+
opacity: 0.3;
81+
}
82+
}
83+
84+
@keyframes placeholder-loading_normal {
85+
0% {
86+
opacity: 0.1;
87+
}
88+
100% {
89+
opacity: 0.6;
90+
}
91+
}
92+
93+
@keyframes placeholder-loading_emphasized {
94+
0% {
95+
opacity: 0;
96+
}
97+
100% {
98+
opacity: 1;
99+
}
100+
}

0 commit comments

Comments
 (0)