Media Slide: Animations broken on images/videos with no-crop option

Created on 28 July 2022, over 2 years ago
Updated 9 May 2024, 10 months ago

Problem/Motivation

Using the ken-burns animation on an image/video that also has the no_crop option set, will result in an image/video that weirdly dancing around in the .media-slide__media wrapper.

Proposed resolution

We need to wrap the image/video element, so we are able to set overflow:hidden. Indeed, its also required to set the images/videos aspect ratio on this wrapper, to preserve it.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024