From 4dfe8bdbb6405eede0eda2422417d9353ddf7747 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 18 Jul 2023 17:03:46 +0800 Subject: Fix #23. --- docker/crupest-nginx/sites/www/src/style.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'docker/crupest-nginx/sites/www/src/style.css') diff --git a/docker/crupest-nginx/sites/www/src/style.css b/docker/crupest-nginx/sites/www/src/style.css index 2dbf0fb..f23bbc0 100644 --- a/docker/crupest-nginx/sites/www/src/style.css +++ b/docker/crupest-nginx/sites/www/src/style.css @@ -6,11 +6,23 @@ body { width: 100%; margin: 0; box-sizing: border-box; - transition: padding-top 1s; +} + +@keyframes article-enter { + from { + opacity: 0; + transform: translateY(100px); + } + + to { + opacity: 1; + transform: translateY(0); + } } #main-article { padding: 0 1em; + animation: article-enter 1s; } @media (min-width: 576px) { -- cgit v1.2.3