Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Image Compare Accessible Slider

114 sites Security covered Drupal 10–11
View on drupal.org

This module adds an accessible image comparison slider to your Drupal site, allowing users to view two images side-by-side with a slider. It supports custom captions and offers flexible configuration options for the slider's behavior and appearance.

This module provides a new formatter for image fields using the Image Compare javascript library.

The main point of interest of this library is the use of a simple HTML input element of type range to implement the slider. This makes it one of the most accessible image comparison slider available at the moment.

Installation

  • Download and enable the module.
  • Check the README file for the image-compare javascript library installation instructions.
  • Select Image Compare Accessible Slider formatter in your multivalued image field display configuration.
  • Remember that you have to upload at least 2 images.

A dedicated submodule, Image Compare Accessible Slider for Media, allows to extend this module to make it compatible with medias of type Image (or referencing other medias of type Image via this module).

Configuration

  • A custom starting point between 0 and 100 can be specified (default: 50).
  • alt or title image attributes can be used as a caption.
  • A custom field can also be used as a caption, useful with custom media images for example.
  • A custom field can be used to override the global field formatter configuration options with some content specific ones which allows more flexibility than most other available sliders.
  • Captions are optional and can be disabled globally, by not specifying any caption field, or on a per-instance basis by using a custom options field.

Available configuration options

  • label_text: usage explanation message for screen readers.
  • keyboard_step: the keyboard step, higher value can improve keyboard usability.
  • step: can be set to value below 1, 0.01 for example, to improve smoothness when using the mouse to slide. Use in conjunction with keyboard_step configuration option above.
  • show_captions: set to false to remove captions.
  • starting_position: starting position of the slider between 0 and 100.

Around the Web

Keywords: A11y

Depends on

Dependencies of the latest stable release

  • image Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Nov 2024
Latest release
1 month ago
Releases (12 mo)
2 ▼ from 3
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.1.0-beta1 Pre-release 10–11 Jul 14, 2026
1.0.3 Stable 10–11 Oct 10, 2025
1.x-dev Dev 10–11 Apr 20, 2025
1.0.2 Stable 10–11 Apr 19, 2025
1.0.1 Stable 10–11 Nov 7, 2024