From 7b51a73a1cfe799eb2aea4f567f8523ed19e87db Mon Sep 17 00:00:00 2001 From: Anonymous Contributor Date: Fri, 15 Sep 2023 14:35:45 +0200 Subject: [PATCH] Fix animated image CSS --- css/animated-image.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/css/animated-image.css b/css/animated-image.css index 6941a65..34b9fa4 100644 --- a/css/animated-image.css +++ b/css/animated-image.css @@ -1,6 +1,5 @@ .animated-image { display: grid; - position: absolute; align-items: center; text-align: center; overflow: hidden; @@ -18,6 +17,13 @@ z-index: 50; } +.animated-image div { + background-size: contain; + background-repeat: no-repeat; + width: 100%; + height: 0; +} + .animated-image a { top: 100%; text-decoration: none;