Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Css Aspect Ratio

No security coverage Under active development 9 sites

This module adds responsive image containers with a fixed aspect ratio to prevent page layout shifts caused by images loading at different times. It ensures a consistent visual experience for users by pre-allocating space for images.

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.

Ask your assistant about Css Aspect Ratio

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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

Tracked releases
1
Tracked since
Nov 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-1.0-beta4 Pre-release 8–10 Nov 30, 2023