Design language

This commit is contained in:
2026-05-13 09:39:52 +12:00
parent 6c943b14bd
commit de8b60b9c3
11 changed files with 329 additions and 236 deletions
+6
View File
@@ -37,6 +37,10 @@
let revealObserver: IntersectionObserver | null = null;
function shouldAnimateAnchorBounce() {
return typeof window !== 'undefined' && window.innerWidth > 768;
}
function initReveal() {
revealObserver?.disconnect();
@@ -64,6 +68,8 @@
}
function bounceSection(hash: string) {
if (!shouldAnimateAnchorBounce()) return;
const id = hash.startsWith('#') ? hash.slice(1) : hash;
if (!id) return;
// Wait for smooth scroll to finish before playing the bounce