/bubble-tutorials

How to build a media slider in Bubble

Learn how to build a media slider in Bubble with simple steps, essential plugins, and tips to create smooth, responsive image and video carousels.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web or mobile app? RapidDev builds Bubble apps with your growth in mind.

Book a Free Consultation

How to build a media slider in Bubble

A simple and reliable way to build a media slider in Bubble is to use a Repeating Group that displays a list of images or videos, and then control which item is visible by changing a custom state (for example, “current_index”). When the user taps next/previous arrows, you update that custom state, and the Repeating Group scrolls to the corresponding cell. This works with Bubble’s native elements, no plugins required.

 

How to Build It

 

The idea is: you load a list of media files into a Repeating Group, set the RG to show them horizontally, and use a custom state to “move” to the next or previous item. The user sees only one item at a time because the RG has a fixed cell width equal to the slider’s width.

  • Create a Repeating Group with content type Image or a custom Media type if you store multiple formats.
  • Set its Layout to horizontal scrolling. Make the width of one cell match the whole slider frame.
  • Inside the RG cell, place an Image element or Video element depending on your data type.
  • On the page, create a custom state on the RG called “current\_index” with type Number.
  • Add two arrows (left/right). Their workflows will change the custom state: decrease or increase by 1.
  • Add an action in the same workflow: Scroll to entry in Repeating Group and give it the “current\_index”.

 

// Example of a Next button workflow
// Step 1: Set state RG Media's current_index = RG Media's current_index + 1
// Step 2: Scroll to entry in RG Media: entry = RG Media's current_index

 

Make sure the RG’s data source is the list you want to show (for example, Current Page Product’s Media). To avoid out-of-range scrolls, add conditions to the buttons, such as hiding the Next button when current\_index = RG’s list of items:count.

Explore More Valuable No-Code Resources

How to integrate Bubble.io with Git?

Learn how to seamlessly integrate Bubble.io with Git through our comprehensive step-by-step guide. Perfect for beginners and professionals.

Explore

How to integrate Bubble.io with Reddit Ads?

Learn how to seamlessly integrate Bubble.io with Reddit Ads using our easy step-by-step guide. Boost your ad management today!

Explore

How to integrate Bubble.io with AWS S3?

Explore our step-by-step guide on integrating Bubble.io with AWS S3, making your app development process more efficient and secure.

Explore

How to integrate Bubble.io with Lucidchart?

Follow our step-by-step guide to seamlessly integrate Bubble.io with Lucidchart, enhancing your workflow & productivity.

Explore

How to integrate Bubble.io with Kentico?

Learn how to seamlessly integrate Bubble.io and Kentico with our comprehensive, easy to follow step-by-step guide.

Explore

How to integrate Bubble.io with Box?

Discover easy-to-follow steps for integrating Bubble.io with Box. Boost your workflow and secure your files seamlessly today.

Explore

Stuck in Bubble.io? We’re here to help!

Fix broken workflows | Optimize logic | Boost performance | Scale with confidence

4.9
Clutch rating 🌟
600+
Happy partners
17+
Countries served
190+
Team members

By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.

Cookie preferences