Webflow Carousel - Add a Slider With Custom Attributes

Add a responsive carousel slider to any Webflow site with custom attributes and one script tag. Touch-enabled, multiple effects, works on all Webflow plans.

Stefan Pakic

March 03, 2026

3 mins read

Table of content

Create your website visually – fast and easy.

Build a stunning website with ease using our visual builder. No experience needed – just drag, drop, and launch your site today.

Live Preview

Webflow's native slider works for basic use cases, but it's limited. No touch-swipe on desktop, no coverflow or cards effects, no autoplay pause on hover, no multiple visible slides. If you need a proper carousel slider in Webflow, you're usually looking at custom JavaScript or third-party embeds.

There's an easier way. OneType Transforms lets you add a full-featured carousel to Webflow with custom attributes - the same way you'd add any other interaction. No code to write, no embed blocks needed for simple setups. For the full feature overview, see the main carousel slider guide.

Step 1: Add the script tag

The Swiper carousel is a premium transform. Sign up at transforms.onetype.ai/pricing, grab your script tag, then add it to Webflow:

  1. Open the Webflow Designer
  2. Go to Site Settings (Webflow logo, top-left)
  3. Click the Custom Code tab
  4. Paste the script tag in the Footer Code section (before </body>)
  5. Click Save Changes
  6. Publish the site
<script src="https://cdn.transforms.onetype.ai/bundle/{YOUR-TOKEN}.js"></script>

This requires a Webflow Basic site plan or above ($14/mo). The free Starter plan doesn't support custom code.

You have two options depending on your slide content.

Option A: Custom attributes on a Div Block (recommended)

  1. Add a Div Block to your page - this is the carousel container
  2. Add child Div Blocks inside it - each one becomes a slide
  3. Select the parent Div Block
  4. Open the Settings panel (gear icon, right sidebar)
  5. Under Custom Attributes, click +
  6. Add: Name = ot, Value = swiper
  7. Add more attributes for options: ot-navigation = true, ot-pagination = bullets
  8. Publish to see it live

This is the cleanest approach - you're using Webflow's native elements with custom attributes. Style your slides however you want in the Webflow Designer, then add the attributes to activate the carousel.

Option B: Embed element (for custom HTML)

If you prefer writing raw HTML, add an Embed element (press A, search "Embed") and paste your carousel markup:

<div ot="swiper" ot-navigation="true" ot-pagination="bullets" ot-autoplay="true" ot-loop="true">
    <div><img src="slide-1.jpg" alt="Slide 1"></div>
    <div><img src="slide-2.jpg" alt="Slide 2"></div>
    <div><img src="slide-3.jpg" alt="Slide 3"></div>
</div>

Portfolio gallery with coverflow:

Set up a Div Block with children for each portfolio item. Add these custom attributes to the parent:

  • ot = swiper
  • ot-effect = coverflow
  • ot-slides-per-view = 2
  • ot-centered = true
  • ot-loop = true
  • ot-grab-cursor = true

Testimonial slider with autoplay:

  • ot = swiper
  • ot-effect = fade
  • ot-autoplay = true
  • ot-autoplay-pause = true
  • ot-pagination = bullets

Multi-card row:

  • ot = swiper
  • ot-slides-per-view = 3
  • ot-space-between = 20
  • ot-navigation = true
  • ot-pagination = fraction

Webflow's built-in Slider component handles basic slideshows. Here's where the OneType carousel adds more:

  • Touch swipe on desktop - drag to swipe, not just on mobile
  • Multiple slides visible - show 2, 3, or more slides at once with spacing
  • 6 transition effects - slide, fade, coverflow, cards, cube, flip
  • Autoplay with pause on hover - stops when users interact
  • Free-mode scrolling - slides don't snap to position
  • Keyboard and mousewheel navigation - accessible by default

Using with Webflow CMS

You can use the carousel with Webflow CMS Collection Lists. Set up a Collection List, add the ot="swiper" attribute to the list wrapper, and each Collection Item becomes a slide. This works great for dynamic content like blog posts, products, or team members pulled from the CMS.

Important notes

  • Custom code only renders on the published site, not in the Webflow Designer preview
  • Custom attributes work on all Webflow plans including free - but the script tag needs a Basic plan ($14/mo) minimum
  • OneType also offers a Webflow Designer Extension that lets you apply transforms visually inside the Designer - no manual attribute setup needed

For the full list of carousel options and effects, see the complete carousel slider guide. Browse all transforms at transforms.onetype.ai.

Build and publish websites for free

Build and host your site with a custom domain for free. Upgrade anytime for expanded limits.

Build for free

Built in Divhunt

We use cookies.

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

Optahunt

Preferences

Manage your cookie preferences.

Essentials

Always Active

These are required for the website to work, like remembering your privacy settings, keeping you logged in, or enabling secure payments.

Performance

These help us understand how people use our site (like which pages are most popular) so we can make improvements.

Personalization

These allow the site to remember your preferences (such as language or region) and provide enhanced features.

Advertising & Targeting

These are used to deliver ads more relevant to you, limit how often you see them, and measure campaign performance.

Save my preferences

You can always change these settings later via ourCookie Policy pagepage, or via the cookie widget placed at the bottom left of the page.