Skip to content

Commit

Permalink
[Skeleton] Apply the wave animation to the correct element (#43474)
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Aug 27, 2024
1 parent 4fe4d8c commit d2e0762
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/mui-material/src/Skeleton/Skeleton.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,10 @@ const SkeletonRoot = styled('span', {
props: {
animation: 'wave',
},
style: waveAnimation || {
animation: `${waveKeyframe} 2s linear 0.5s infinite`,
style: {
'&::after': waveAnimation || {
animation: `${waveKeyframe} 2s linear 0.5s infinite`,
},
},
},
],
Expand Down

0 comments on commit d2e0762

Please sign in to comment.