Skip to content

Commit 1184ea3

Browse files
committed
Use filter animation for logo shimmer, no background overlay
1 parent 90c82d0 commit 1184ea3

1 file changed

Lines changed: 7 additions & 15 deletions

File tree

src/components/SiteTitle.astro

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,17 @@ const logoDataUri = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABBCAYAA
4040
width: 28px !important;
4141
height: 28px !important;
4242
display: block;
43-
filter: grayscale(1) contrast(1.2) brightness(0.9);
44-
}
45-
.mark-wrap::after {
46-
content: '';
47-
position: absolute;
48-
inset: 0;
49-
border-radius: 6px;
5043
animation: logo-shimmer 6s ease-in-out infinite;
51-
mix-blend-mode: color;
52-
pointer-events: none;
5344
}
54-
:global(:root[data-theme='light']) .mark-wrap::after {
55-
display: none;
45+
:global(:root[data-theme='light']) .mark {
46+
filter: grayscale(1) contrast(1.2) brightness(0.9);
47+
animation: none;
5648
}
5749
@keyframes logo-shimmer {
58-
0% { background: rgba(124, 92, 191, 0.5); }
59-
33% { background: rgba(90, 120, 220, 0.55); }
60-
66% { background: rgba(150, 80, 180, 0.5); }
61-
100% { background: rgba(124, 92, 191, 0.5); }
50+
0% { filter: grayscale(0.6) contrast(1.2) brightness(0.9) saturate(1.2); }
51+
33% { filter: grayscale(0.2) contrast(1.3) brightness(1.1) saturate(1.8); }
52+
66% { filter: grayscale(0.4) contrast(1.2) brightness(1.0) saturate(1.5); }
53+
100% { filter: grayscale(0.6) contrast(1.2) brightness(0.9) saturate(1.2); }
6254
}
6355
.label {
6456
font-size: 17px !important;

0 commit comments

Comments
 (0)