From 35aa1340140c26e1293d66627ee7a95ab80499fb Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Thu, 10 Sep 2026 21:37:39 -0700 Subject: [PATCH] Add transition effect to `` when URL is changed This transition makes it clearer when the output has been updated. --- index.html | 49 ++++++++++++++++++++++++++++++++----------------- 1 file changed, 32 insertions(+), 17 deletions(-) diff --git a/index.html b/index.html index b644368..fc7522c 100644 --- a/index.html +++ b/index.html @@ -118,6 +118,11 @@ background: hsl(216deg 80% 98%); border-radius: 4px; display: none; + transition: opacity 300ms; + + @starting-style { + opacity: 0; + } } output:has(:not(code:empty)) { @@ -185,6 +190,7 @@