MARKETPLACE
PLUGINS
RESPONSIVE BEFORE & AFTER SLIDER
Responsive Before & After Slider logo

Responsive Before & After Slider

Published April 2025
   •    Updated May 2026

Plugin details

Responsive Before & After Image Slider Plugin
Description.

Easily compare two images side-by-side with a clean and responsive before & after slider. Perfect for showcasing image edits, transformations, or comparisons directly in your Bubble app.

Add an interactive image comparison slider to your Bubble application. This plugin allows users to drag a vertical divider to reveal more or less of two different images, making it ideal for showcasing visual changes, product variations, or any before-and-after scenario.

Key Features:

* Smooth Slider: Intuitive drag functionality.

* Image Fit Mode. Control how images are displayed within the slider area with options for `Cover` (fills the space, may crop) and `Contain` (shows the full image, may leave background space).

* Optional Hover-to-Move: Allow the slider to follow the mouse cursor position when hovering over the image area.

* Automatic Aspect Ratio: The plugin container automatically adjusts its height to match the aspect ratio of the 'Before' image.

* Container Background: Set a background color for the plugin container, visible when using the `Contain` image fit mode if the image's aspect ratio doesn't exactly match the container's.

* Customizable Labels: Display 'Before' and 'After' labels with custom text, color, background, and adjustable font size.

* Auto-Hide Labels on Move: Option to automatically hide the labels while the slider is being moved (by dragging or hovering) and reappear shortly after movement stops.

* Constrained Handle and Labels (Contain Mode): When the image fit mode is `Contain`, the slider handle and labels are constrained to move and appear only within the visible boundaries of the image.

* Toggle Handle Circle: Choose to show the full circular handle or hide the circle, leaving only the vertical line and arrows visible for a minimalist look.

* Fully Responsive: Works seamlessly across different screen sizes and devices.

Enhance your application's visual appeal and user experience with this flexible and easy-to-configure image slider.

**See it in action:**

* Live Demo:

   https://before-and-after-slider.bubbleapps.io/version-test

* Demo Editor:

   https://bubble.io/page?id=before-and-after-slider&test_plugin=1745599420967x694968127656820700_current

$7

One time

stars   •   0 ratings
6 installs  
This plugin does not collect or track your personal data.

Platform

Web

Contributor details

Mr. Gattax logo
Mr. Gattax
Joined 2021   •   5 Plugins
View contributor profile

Instructions

*Instructions:*
Install the Plugin: Add the "Responsive Before & After Image Slider" plugin to your Bubble application from the marketplace.

Add the Element: Drag and drop the "Before After Slider" element onto your page in the Bubble editor.

Configure Properties: Select the element on your page and use the Property Editor to customize its appearance and behavior using the following fields:

Image 1 (Before Image):
Type: Image
Description: Upload or dynamically set the image that will appear on the left side ("Before").

Image 2 (After Image):
Type: Image
Description: Upload or dynamically set the image that will appear on the right side ("After").

Show Labels:
Type: yes/no
Description: Check this box to display the 'Before' and 'After' labels over the images.

Before Label:
Type: text
Description: Enter the custom text for the 'Before' label (e.g., "Original"). Requires "Show Labels" to be checked.

After Label:
Type: text
Description: Enter the custom text for the 'After' label (e.g., "Edited"). Requires "Show Labels" to be checked.

Label Color:
Type: color
Description: Set the text color for both 'Before' and 'After' labels. Requires "Show Labels" to be checked.

Label Background:
Type: color
Description: Set the background color for both 'Before' and 'After' labels. Requires "Show Labels" to be checked.

Enable Hover to Move:
Type: yes/no
Description: Check this box to allow the slider to follow the mouse cursor position when hovering over the image area. The drag functionality remains active regardless of this setting.

Hide Handle Circle:
Type: yes/no
Description: Check this box to hide the circular part of the slider handle, leaving only the central line and directional arrows visible.

Auto Hide Labels on Move:
Type: yes/no
Description: If enabled, the 'Before' and 'After' labels will automatically hide while the slider is being moved (by dragging or hovering) and reappear shortly after movement stops. Requires "Show Labels" to be checked.
Notes on Layout:

The plugin automatically matches its height to the aspect ratio of the 'Before' image. You only need to control the width of the element and its parent containers in Bubble's layout settings.

Ensure the container where you place the slider element is configured correctly in Bubble's responsive layout to give the plugin the desired width.

**Demo Application:**

See a live demo of this plugin in action here:

https://before-and-after-slider.bubbleapps.io/version-test

**Demo App Editor:**

To see how this plugin is implemented in a Bubble workflow, view the demo app's editor here:

https://bubble.io/page?id=before-and-after-slider&test_plugin=1745599420967x694968127656820700_current&tab=Design&name=index

Types

This plugin can be found under the following types:

Categories

This plugin can be found under the following categories:

Resources

Support contact
Documentation
Tutorial

Rating and reviews

No reviews yet

This plugin has not received any reviews.
Bubble