From d5675f1a5c3e7d30250c767f71c224becca1a19a Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Sat, 18 Oct 2025 03:14:44 +0000 Subject: [PATCH] feat: Add autumn leaves animation to website Co-authored-by: diogeneshamilton --- _includes/layouts/base.njk | 136 +++++++++++++++++++++++++++++++++++++ 1 file changed, 136 insertions(+) diff --git a/_includes/layouts/base.njk b/_includes/layouts/base.njk index 73efe04789..42aabbafd5 100644 --- a/_includes/layouts/base.njk +++ b/_includes/layouts/base.njk @@ -135,6 +135,54 @@ ogtype: article } } {%- endcss %} + + {#- Autumn Leaves Animation Overlay #} + {%- css %} + /* Autumn Leaves Overlay */ + #autumn-leaves-container { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + pointer-events: none; + z-index: 9999; + overflow: hidden; + } + + .autumn-leaf { + position: absolute; + pointer-events: none; + opacity: 0; + will-change: transform, opacity; + } + + /* Leaf fade in and fall animation */ + @keyframes leafFall { + 0% { + opacity: 0; + transform: translateY(-10vh) rotate(0deg); + } + 10% { + opacity: 0.8; + } + 100% { + opacity: 0; + transform: translateY(110vh) rotate(720deg); + } + } + + /* Subtle horizontal drift */ + @keyframes leafDrift { + 0%, 100% { + transform: translateX(0); + } + 50% { + transform: translateX(30px); + } + } + {%- endcss %} + {#- Add the contents of a file to the bundle #} {%- css %}{% include "public/css/index.css" %}{% endcss %} {#- Or you can add from node_modules #} @@ -149,6 +197,9 @@ ogtype: article {%- js %}{% include "node_modules/@zachleat/heading-anchors/heading-anchors.js" %}{% endjs %} + {#- Autumn Leaves Overlay Container #} + + Skip to main content
@@ -177,5 +228,90 @@ ogtype: article + + {#- Autumn Leaves Animation Script #} +