Skip to content

Commit

Permalink
fix(skeleton): use opacity instead of background-color (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlee11 committed Dec 5, 2023
1 parent 47a5057 commit b853e20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/components/Skeleton/src/SkeletonBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@ export default {
.SkeletonBlock {
width: 100%;
height: 100%;
background-color: $maker-color-neutral-20;
&.loading {
animation: pulsing 0.5s ease-in-out infinite alternate;
}
}
@keyframes pulsing {
0% { background-color: $maker-color-neutral-10; }
100% { background-color: $maker-color-neutral-20; }
0% { opacity: 0.4; }
100% { opacity: 1; }
}
</style>
5 changes: 3 additions & 2 deletions src/components/Skeleton/src/SkeletonText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default {
top: 50%;
width: 100%;
height: 75%;
background-color: $maker-color-neutral-20;
border-radius: $maker-shape-default-border-radius;
transform: translateY(-50%);
animation: pulsing 0.5s ease-in-out infinite alternate;
Expand All @@ -84,7 +85,7 @@ export default {
}
@keyframes pulsing {
0% { background-color: $maker-color-neutral-10; }
100% { background-color: $maker-color-neutral-20; }
0% { opacity: 0.4; }
100% { opacity: 1; }
}
</style>

0 comments on commit b853e20

Please sign in to comment.