Skip to content

Commit

Permalink
improve status panel label heartbeat animation to reduce text blurriness
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanvir1337x committed Jul 28, 2024
1 parent 4da49ff commit 6ffbd70
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 9 additions & 2 deletions chrome/panel/statuspanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,17 @@
#statuspanel-label {
font-size: 20px !important;
padding: 5 5px !important; /* Padding on the sides */
/* Fully transparent background */
background-color: rgba(32, 32, 32, 0) !important;
background-color: rgba(
32,
32,
32,
0
) !important; /* Fully transparent background */
color: #c38f8f !important;
animation: heartbeat 1.5s ease-in-out infinite;
will-change: transform; /* Hint to the browser to optimize for transform changes */
backface-visibility: hidden; /* Prevents flickering */
transform: translateZ(0); /* Creates a new layer for the element */
}

/* Hide the status panel */
Expand Down
8 changes: 3 additions & 5 deletions chrome/styling/animations.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,14 +177,12 @@
}

@keyframes heartbeat {
0% {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.1);
}
100% {
transform: scale(1);
transform: scale(1.2);
}
}

Expand Down

0 comments on commit 6ffbd70

Please sign in to comment.