From 2ff9b8544ec6cf940dc5f9ec9cd26c574bcfc855 Mon Sep 17 00:00:00 2001 From: saicaca Date: Tue, 12 Mar 2024 18:38:14 +0800 Subject: [PATCH] feat: onload animation for article pages --- src/components/GlobalStyles.astro | 2 +- src/pages/posts/[...slug].astro | 39 ++++++++++++++++++++----------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/components/GlobalStyles.astro b/src/components/GlobalStyles.astro index 44759a9..b9bce86 100644 --- a/src/components/GlobalStyles.astro +++ b/src/components/GlobalStyles.astro @@ -257,7 +257,7 @@ color_set({ } .onload-animation { opacity: 0; - animation: 600ms fade-in-up; + animation: 500ms fade-in-up; animation-fill-mode: forwards; } #top-row { diff --git a/src/pages/posts/[...slug].astro b/src/pages/posts/[...slug].astro index 10a70cf..d825fb1 100644 --- a/src/pages/posts/[...slug].astro +++ b/src/pages/posts/[...slug].astro @@ -29,11 +29,11 @@ const { remarkPluginFrontmatter } = await entry.render(); ---
-
-
+
@@ -49,7 +49,7 @@ const { remarkPluginFrontmatter } = await entry.render();
-
+
@@ -107,4 +109,13 @@ const { remarkPluginFrontmatter } = await entry.render();
- \ No newline at end of file + + + \ No newline at end of file