diff --git a/memory/2026-02-25-oddcore-website-loader-animation-bug-fix.md b/memory/2026-02-25-oddcore-website-loader-animation-bug-fix.md new file mode 100644 index 000000000..44f17ed57 --- /dev/null +++ b/memory/2026-02-25-oddcore-website-loader-animation-bug-fix.md @@ -0,0 +1,11 @@ +# 2026-02-25 Session Notes + +## Oddcore Website Loader Animation Bug Fix + +Nicholai reported a persistent issue with the page loading animation on the oddcore-website project. The animation was appearing for a split second between navigations, and after attempted fixes, it became stuck on screen completely, refusing to disappear. He requested a proper implementation. + +The Loader component (src/components/Loader.tsx) uses React hooks with GSAP for animation sequencing. It initializes visibility state synchronously from sessionStorage (checking 'oddcorp-loader-seen') to avoid showing the overlay on repeat visits. The animation timeline runs for ~2.8 seconds total: progress bar fills over 1.5s, logo fades and blurs over 0.5s (with 0.2s overlap), then the container slides up over 0.8s. + +On animation completion, the onComplete callback should call setIsVisible(false) and set the sessionStorage flag. The component has a click handler to skip the animation. The useEffect dependency array is empty, suggesting the animation should only initialize once. + +The issue appears to be related to animation lifecycle management or state synchronization—either the onComplete callback isn't firing properly, or the setIsVisible(false) isn't being applied correctly. Session investigation started by examining the current Loader implementation to identify the root cause before implementing a fix. \ No newline at end of file diff --git a/memory/memories.db b/memory/memories.db index fb35d642d..b07f5b028 100644 Binary files a/memory/memories.db and b/memory/memories.db differ diff --git a/memory/memories.db-shm b/memory/memories.db-shm index 53b36a41b..636c63e4d 100644 Binary files a/memory/memories.db-shm and b/memory/memories.db-shm differ diff --git a/memory/memories.db-wal b/memory/memories.db-wal index ed9a02bb3..0ce4193e2 100644 Binary files a/memory/memories.db-wal and b/memory/memories.db-wal differ