Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,12 @@ async function finalGlowSequence() {
dollarSpan.classList.add('fade-out');
cdSpan.classList.add('fade-out');

// Wait for cd to fade out completely (1.5s transition)
await sleep(1500);
// Wait for 20% of the fade (3s * 0.2 = 600ms), then start shifting koderiet.dev left
await sleep(600);
glowSpan.classList.add('shift-left');

// Wait for animations to complete (remaining 80% of fade = 2400ms)
await sleep(2400);

// That's it for now - we'll add the growth/centering logic later
}
Expand Down
9 changes: 7 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ body {
display: inline;
z-index: 1;
opacity: 1;
transition: opacity 1.5s ease-out;
transition: opacity 3s ease-out;
}

/* General fade-out class for any element */
Expand All @@ -105,9 +105,10 @@ body {
/* Neon glow effect for koderiet.dev */
#koderiet-glow {
display: inline;
transition: font-size 2s ease-out, text-shadow 1.5s ease-in, left 2s ease-out, top 2s ease-out;
transition: font-size 2s ease-out, text-shadow 1.5s ease-in, left 2s ease-out, top 2s ease-out, transform 2.4s ease-out;
white-space: nowrap;
z-index: 10;
transform: translateX(0);
}

#koderiet-glow.glow-initial {
Expand All @@ -121,6 +122,10 @@ body {
animation: neon-pink-pulse 2s ease-in-out infinite alternate;
}

#koderiet-glow.shift-left {
transform: translateX(-2.5em);
}

@media (max-width: 576px) {
#koderiet-glow.glow-active {
font-size: 10vw;
Expand Down