Css Aspect Ratio
This module provides a responsive image container with aspect ratio to prevent unexpected cumulative layout shifts of images. The container prevents page shifts caused by asynchronously loaded images. It supports images and also responsive images. Click on the first image to see a short demonstration video.
For further reading how the CSS container works check out: https://css-tricks.com/aspect-ratio-boxes/
Configuration
To use the css image aspect ratio container, you have to activate it in your field format settings. You can also control in the module configuration for which breakpoints the css should be generated.
Browser support
The module uses custom css properties, which are only supported by newer browsers.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | Release date | |
|---|---|---|---|---|
| 8.x-1.0-beta4 | Pre-release | Nov 30, 2023 |