Skip to content

Commit 1a36922

Browse files
authoredMay 24, 2021
fix(skeleton-text): animation no longer jumps on large skeleton text elements (#22697)
resolves #22694
1 parent dc430af commit 1a36922

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed
 

‎core/src/components/skeleton-text/skeleton-text.scss

+8-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ span {
4747
:host(.skeleton-text-animated) {
4848
position: relative;
4949

50-
background: linear-gradient(to right, $skeleton-text-background 8%, $skeleton-text-background-animated 18%, $skeleton-text-background 33%);
50+
background: linear-gradient(
51+
to right,
52+
$skeleton-text-background 8%,
53+
$skeleton-text-background-animated 18%,
54+
$skeleton-text-background 33%
55+
);
5156
background-size: 800px 104px;
5257
animation-duration: 1s;
5358
animation-fill-mode: forwards;
@@ -59,11 +64,11 @@ span {
5964
/* stylelint-disable property-blacklist */
6065
@keyframes shimmer {
6166
0% {
62-
background-position: -468px 0
67+
background-position: -400px 0;
6368
}
6469

6570
100% {
66-
background-position: 468px 0
71+
background-position: 400px 0;
6772
}
6873
}
6974
/* stylelint-enable property-blacklist */

0 commit comments

Comments
 (0)
Please sign in to comment.