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;