From 20eaaf8672648e88f62faf9f97ef34c75bc7f327 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Sun, 16 Mar 2025 08:13:36 +0800 Subject: feat(animation): implement View Transition Former-commit-id: c56a4855cfd5bce5af0c6f59b73cedec3fc1503d --- assets/css/components/_animation.scss | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'assets/css/components') diff --git a/assets/css/components/_animation.scss b/assets/css/components/_animation.scss index a47bfafc..039de17e 100644 --- a/assets/css/components/_animation.scss +++ b/assets/css/components/_animation.scss @@ -1,9 +1,5 @@ -/* transition swup */ +/* page transition */ -html.is-changing .transition-fade { - transition: opacity 0.25s; - opacity: 1; -} -html.is-animating .transition-fade { - opacity: 0; +@view-transition { + navigation: auto; } -- cgit v1.2.3