diff options
author | crupest <crupest@outlook.com> | 2023-07-18 17:03:46 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-07-18 17:03:46 +0800 |
commit | 2197b07482b3500fdb87db579e7d538be17942c6 (patch) | |
tree | 8bf4a35c543dac2e8cd1bd30728cd9f1855a346e /docker/crupest-nginx/sites/www/src/style.css | |
parent | 60f6e310f344fe6b8b8206038d29500331019895 (diff) | |
download | crupest-2197b07482b3500fdb87db579e7d538be17942c6.tar.gz crupest-2197b07482b3500fdb87db579e7d538be17942c6.tar.bz2 crupest-2197b07482b3500fdb87db579e7d538be17942c6.zip |
Fix #23.
Diffstat (limited to 'docker/crupest-nginx/sites/www/src/style.css')
-rw-r--r-- | docker/crupest-nginx/sites/www/src/style.css | 14 |
1 files changed, 13 insertions, 1 deletions
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) { |