From 952c05a945288a335a197483d5528c6b5e77aab8 Mon Sep 17 00:00:00 2001 From: Reliaaa <146612450+Reliaaaa@users.noreply.github.com> Date: Tue, 10 Nov 2026 22:34:21 +0700 Subject: [PATCH] Add stable oval exit for menu photos --- src/styles.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/styles.css b/src/styles.css index cc8804a..5324f65 100644 --- a/src/styles.css +++ b/src/styles.css @@ -216,3 +216,6 @@ html.menu-lock,html.menu-lock body{overflow:hidden!important;overscroll-behavior /* Once the exit reveal is complete, keep every navigation link hidden while the curtain moves. */ .site-header .nav-links.is-closing:not(.is-open) .nav-content nav{visibility:hidden} + +/* A separate exit animation holds the photo mask closed throughout the curtain transition. */ +@media(prefers-reduced-motion:no-preference){.site-header .nav-links.is-closing .nav-art-item{animation:nav-photo-oval-exit .65s cubic-bezier(.65,0,.35,1) both;animation-delay:calc((3 - var(--art-index)) * 50ms)}@keyframes nav-photo-oval-exit{from{clip-path:ellipse(75% 75% at 50% 50%)}to{clip-path:ellipse(0% 0% at 50% 50%)}}}