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.
How to add a carousel slider to Framer
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
- Click the gear icon (Settings) in the top-right of the Framer editor
- Go to the General tab
- Scroll to Custom Code
- Click Show Advanced to see all placement options
- Paste the script tag in End of <head> tag
- 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.
Step 2: Add the carousel
- Open the Insert menu (or press /)
- Search for Embed
- Drag the Embed component onto your canvas
- Switch to the HTML tab in the component settings
- Paste the carousel HTML
- Resize the Embed to fit your layout
- 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.
Framer carousel examples
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.






