Before / After Compare

Back to catalogue

Loading preview…

Asset overview

About

Let visitors inspect the difference. Compare photographic treatments, renovations or product states with a mouse-following divider, full-screen imagery and matching crops.

    Capabilities

    Key Features

    • Move the mouse to compare; touch dragging, stage taps, Arrow keys and RTL remain supported
    • Replace both images and tune divider direction, starting position and color
    • Original photographic colour study, atomic pair decoding and retained valid media on load failure
    Advanced / Developer ReferenceExact normalized configuration and runtime boundary
    Developer detailsExact configuration

    The preview, Reset, presets, and runtime share this normalized object. The allowlisted media pair supplies authored alternative text; host integrations may provide their own aligned same-origin media records.

    
                

    Implementation boundary

    Integration

    Lifecycle

      Dependencies

        Preview delivery

        Sign in to unlock this asset configuration for 2 credits. Choose Download to review the files and installation options.

        Input and media

        Responsive / Accessibility

        • The semantic slider exposes actual Before and After shares, axis-correct Arrow behavior, Home, End, and explicit RTL positioning.
        • Handle dragging uses a bounded corridor while stage taps require a stationary gesture, preserving ordinary page scroll and pinch zoom.
        • Narrow roots may keep the configured divider, force a scroll-friendly vertical divider, or show both labeled states as static panels.
        • Reduced motion keeps direct comparison available; both images retain useful authored alternative text and one shared crop transform.