Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Scratch Compare

No security coverage Under active development

This module adds an accessible "before and after" image comparison slider to your Drupal site. It works as a field formatter for any media reference field, allowing you to easily create visual comparisons directly within your content without custom coding.

Scratch Compare provides an accessible before/after image
comparison slider as a Drupal Field Formatter. Attach it to
any unlimited Media reference field across content types and
paragraph types — no custom coding required.

Drag the center divider left or right to reveal more of either
image, creating a stunning visual comparison effect directly
inside your Drupal site.

Features

- Drag-to-reveal before/after image comparison slider
- Built as a Drupal Field Formatter — works on any Media reference field
- Compatible with content types and paragraph types
- Supports unlimited media reference fields
- Fully accessible — keyboard and screen reader friendly
- No external libraries required
- Compatible with Drupal 10 and 11

Post-Installation

After enabling the module, go to the Manage Display settings
of any content type or paragraph type that has an unlimited
Media reference field. Select "Scratch Compare" as the field
formatter. Add two images to the field and the comparison
slider will render automatically.

Additional Requirements

- Drupal 10 or 11
- Media module (Drupal core)
- Field module (Drupal core)

No additional libraries required.

Similar projects

Unlike other image comparison modules, Scratch Compare works
as a native Drupal Field Formatter — integrating seamlessly
with any existing Media reference field without requiring
separate block or paragraph configuration.

Drupal 10–11

Ask your assistant about Scratch Compare

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

  • field Drupal core
  • media Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0 Stable 10–11 Sep 28, 2026