Skip to content

Commit 477171b

Browse files
p4gsclaudehappy-otter
committed
Add stroke-based glow with reverse lava flow to title
Uses text-stroke on ::before pseudo-element so glow only appears as a border around the text, not bleeding into the text color. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
1 parent 7646b56 commit 477171b

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

docs/projects/nthpartyfinder/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,11 @@
178178
50% { background-position: 100% 50%; }
179179
100% { background-position: 0% 50%; }
180180
}
181+
@keyframes lava-flow-reverse {
182+
0% { background-position: 100% 50%; }
183+
50% { background-position: 0% 50%; }
184+
100% { background-position: 100% 50%; }
185+
}
181186
@keyframes neon-flicker {
182187
0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
183188
opacity: 1;
@@ -198,6 +203,23 @@
198203
animation: lava-flow 8s ease-in-out infinite, neon-flicker 4s infinite;
199204
animation-delay: calc(var(--i) * -0.6s), 0s;
200205
}
206+
.lava-letter::before {
207+
content: attr(data-letter);
208+
position: absolute;
209+
top: 0;
210+
left: 0;
211+
z-index: -1;
212+
background: linear-gradient(90deg, #FF8C00, #FF9A1F, #00A8E8, #00C2FF, #FF8C00);
213+
background-size: 300% 100%;
214+
-webkit-background-clip: text;
215+
background-clip: text;
216+
-webkit-text-fill-color: transparent;
217+
-webkit-text-stroke: 4px transparent;
218+
paint-order: stroke fill;
219+
animation: lava-flow-reverse 8s ease-in-out infinite;
220+
animation-delay: calc(var(--i) * -0.6s);
221+
filter: blur(1.5px);
222+
}
201223

202224
.hero-tagline {
203225
font-family: var(--font-mono);

0 commit comments

Comments
 (0)