From 8547915658df71788c0ecb4082f6718109265b1c Mon Sep 17 00:00:00 2001 From: Jonas Werner Date: Fri, 21 Mar 2025 17:45:31 +0100 Subject: [PATCH] added scroll animation to header --- src/main/resources/static/index.css | 1 + src/main/resources/templates/header.ftl | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/main/resources/static/index.css b/src/main/resources/static/index.css index b8f334e..c77d335 100644 --- a/src/main/resources/static/index.css +++ b/src/main/resources/static/index.css @@ -29,6 +29,7 @@ header { right: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); border-bottom: 5px solid #a8170d; + transition: top 0.3s ease; } header h1 { diff --git a/src/main/resources/templates/header.ftl b/src/main/resources/templates/header.ftl index 0368cec..31f2cdd 100644 --- a/src/main/resources/templates/header.ftl +++ b/src/main/resources/templates/header.ftl @@ -1,4 +1,4 @@ -
+