From 6edd8ba2cf2208aefdd5d3f581ebc87de59c303c Mon Sep 17 00:00:00 2001
From: Mikkel Svartveit
Date: Mon, 13 May 2024 00:54:46 -0700
Subject: [PATCH] Add fade animation to view counter
---
src/components/ArticleViewCounter.svelte | 36 +++++++++++++-----------
src/pages/articles/[article].astro | 2 +-
2 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/src/components/ArticleViewCounter.svelte b/src/components/ArticleViewCounter.svelte
index 122f3b2..af96efd 100644
--- a/src/components/ArticleViewCounter.svelte
+++ b/src/components/ArticleViewCounter.svelte
@@ -1,6 +1,8 @@
-{#if counter !== null}
- ⋅
+
+ ⋅
-
-
- {counter}
-
-{/if}
+ {#if counter !== null}
+ {counter}
+ {/if}
+
diff --git a/src/pages/articles/[article].astro b/src/pages/articles/[article].astro
index 854627e..3350919 100644
--- a/src/pages/articles/[article].astro
+++ b/src/pages/articles/[article].astro
@@ -37,7 +37,7 @@ const title = headings[0].text;
}
-
+