@@ -76,7 +76,7 @@ rssPosts.sort(sortMarkdownByDate);
Journal
@@ -84,7 +84,7 @@ rssPosts.sort(sortMarkdownByDate);
diff --git a/src/pages/sketchnotes.astro b/src/pages/sketchnotes.astro
index a859f7f..be538cc 100644
--- a/src/pages/sketchnotes.astro
+++ b/src/pages/sketchnotes.astro
@@ -55,6 +55,7 @@ const description = 'This is a collection of Sketchnotes I’ve drawn.';
'md:col-span-5 md:row-span-6':
data.images[0].aspectRatio < 1 && data.coverSize === 'large',
},
+ 'slide',
]}
>
diff --git a/src/pages/traditional-colors-of-japan.astro b/src/pages/traditional-colors-of-japan.astro
index fb4f05e..736a952 100644
--- a/src/pages/traditional-colors-of-japan.astro
+++ b/src/pages/traditional-colors-of-japan.astro
@@ -39,7 +39,7 @@ const description =
{
colors.map(({ name, description, color }) => (
-
+
))
diff --git a/src/styles/global.css b/src/styles/global.css
index 7ee0466..1a03aba 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -268,4 +268,22 @@
figure > .figure-content > lite-youtube {
@apply mbe-0;
}
+
+ @keyframes slide-fade-in {
+ from {
+ opacity: 0;
+ box-shadow: none;
+ transform: scale(0.8) translateY(15vh);
+ }
+ }
+
+ .slide {
+ @media (prefers-reduced-motion: no-preference) {
+ @supports (animation-timeline: view()) {
+ animation: slide-fade-in both;
+ animation-timeline: view();
+ animation-range: contain -40% contain 50%;
+ }
+ }
+ }
}