From 3b07411c5a226093d67a2b71a2b832703a33c1e9 Mon Sep 17 00:00:00 2001 From: Wu Tingfeng Date: Thu, 12 Mar 2026 17:44:54 +0800 Subject: [PATCH] Disable transition animations when tabbing. --- chapter-05/after/styles.css | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/chapter-05/after/styles.css b/chapter-05/after/styles.css index c2c1eba..170d519 100644 --- a/chapter-05/after/styles.css +++ b/chapter-05/after/styles.css @@ -128,5 +128,13 @@ a:focus { opacity: 1; transform: translateY(0); } + + section:focus-within div { + transition-duration: 0ms; + } + + section:focus-within div > * { + transition-duration: 0ms; + } }