Framer Carousel - Add a Slider With an Embed Component

Add a responsive carousel slider to any Framer site with an Embed component and Custom Code settings. Touch-enabled, multiple effects, simple setup.

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

Framer has powerful built-in animations with Framer Motion, but building a carousel slider from scratch still requires writing a React component with state management, touch handling, and transition logic. If you just want a working slider, that's a lot of overhead.

There's a shortcut: add a script tag in Framer's Custom Code settings and use an Embed component for the carousel HTML. No Code Components needed, no React to write. The carousel handles touch, navigation, pagination, and effects out of the box.

This guide uses the Swiper carousel from OneType Transforms. For the full feature overview, see the main carousel slider guide.

You need a Framer Basic plan or higher ($10/mo) for Custom Code in Site Settings. The Embed component works on all plans including Free, but you need the Custom Code section for the site-wide script.

Step 1: Add the script tag

  1. Click the gear icon (Settings) in the top-right of the Framer editor
  2. Go to the General tab
  3. Scroll to Custom Code
  4. Click Show Advanced to see all placement options
  5. Paste the script tag in End of <head> tag
  6. Click Save, then Publish
<script src="https://cdn.transforms.onetype.ai/bundle/{YOUR-TOKEN}.js"></script>

Get your token at transforms.onetype.ai/get-started after signing up for a Pro or Agency plan.

  1. Open the Insert menu (or press /)
  2. Search for Embed
  3. Drag the Embed component onto your canvas
  4. Switch to the HTML tab in the component settings
  5. Paste the carousel HTML
  6. Resize the Embed to fit your layout
  7. Publish to see it live
<div ot="swiper" ot-navigation="true" ot-pagination="bullets" ot-autoplay="true" ot-loop="true">
    <div><img src="slide-1.jpg" alt="Slide 1" style="width:100%; border-radius:12px;"></div>
    <div><img src="slide-2.jpg" alt="Slide 2" style="width:100%; border-radius:12px;"></div>
    <div><img src="slide-3.jpg" alt="Slide 3" style="width:100%; border-radius:12px;"></div>
</div>

The carousel won't render in the Framer editor. Use the Preview URL or publish to see it working. Content inside the Embed is self-contained - your Framer styles don't affect it.

Portfolio with coverflow effect:

<div ot="swiper" ot-effect="coverflow" ot-slides-per-view="2" ot-centered="true" ot-loop="true" ot-grab-cursor="true">
    <div><img src="work-1.jpg" alt="Project 1" style="width:100%; border-radius:16px;"></div>
    <div><img src="work-2.jpg" alt="Project 2" style="width:100%; border-radius:16px;"></div>
    <div><img src="work-3.jpg" alt="Project 3" style="width:100%; border-radius:16px;"></div>
    <div><img src="work-4.jpg" alt="Project 4" style="width:100%; border-radius:16px;"></div>
</div>

Cards stack effect:

<div ot="swiper" ot-effect="cards" ot-grab-cursor="true" style="max-width:360px; margin:0 auto;">
    <div style="padding:40px; background:linear-gradient(135deg,#667eea,#764ba2); color:white; border-radius:16px; text-align:center;">Feature 1</div>
    <div style="padding:40px; background:linear-gradient(135deg,#f093fb,#f5576c); color:white; border-radius:16px; text-align:center;">Feature 2</div>
    <div style="padding:40px; background:linear-gradient(135deg,#4facfe,#00f2fe); color:white; border-radius:16px; text-align:center;">Feature 3</div>
</div>

Embed vs Code Component

The Embed approach is simpler - paste HTML and you're done. If you need a reusable carousel with configurable properties in Framer's design panel (so non-coders can adjust settings), you can wrap the HTML in a Code Component with Property Controls. But for most use cases, Embed is all you need.

Important notes

  • Custom Code in Site Settings requires a paid plan (Basic $10/mo minimum)
  • Embed content is scoped - Framer site styles don't apply inside it (not a problem for the carousel)
  • Framer does not have a custom attributes UI like Webflow - Embed is the primary method
  • The carousel only runs on the published site, not in the Framer editor

For the full list of carousel options, effects, and configuration, 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.