日本語

CSS Carousel Examples

You can build a carousel without JavaScript using CSS scroll-snap, @keyframes and 3D transforms. Preview 60 carousels, from spirals to infinite loops, change the card count and speed, and copy the HTML and CSS as they are.

Carousel types and when to use them

A carousel shows images or cards in a row (or a column, or a spiral) that you swipe through or that move on their own. Use scroll snap for swiping, an infinite loop for things that move by themselves, and a spiral or coverflow where you want to catch the eye.

Type Languages Main techniques Browsers Good for
Tornado, helix, double helix, swirl, spiral staircase, coneCSS@keyframes, transformsAll major browsersHero sections, portfolios
Sphere, Saturn ring, tunnel, wavy ring, arch, flip board, page turn, wavy floor, Möbius ring, panoramaCSS3D transformsAll major browsersCampaigns, portfolios, eye-catching spots
Scattered photos, card stack cycleCSS:hover, @keyframesAll major browsersPhoto albums, testimonials
Scroll-driven helix, scroll down to move sideways, scroll-driven dialCSS, JSanimation-timeline: scroll()All major browsers (CSS in Chrome and Edge, JS elsewhere)Long product stories
Infinite, two-row, vertical, diagonal, wave, perspective, circular and zigzag loopsCSS@keyframesAll major browsersLogos, clients, testimonials, news
Scroll snap, responsive card countCSSscroll-snap, container queriesAll major browsersMobile product and article lists
With thumbnails, dot-controlled slidesCSSradio buttons, :has()All major browsersProduct photos, portfolio details
Autoplay with progress bars, full-width fadeCSS@keyframesAll major browsersHero photos, announcements
Buttons and dotsCSS, JS::scroll-button, ::scroll-markerAll major browsers (CSS in Chrome and Edge 135+, JS elsewhere)Photo slides
Center zoom, coverflow, parallax, blur at the edgesCSS, JSanimation-timeline: view()All major browsers (CSS in Chrome and Edge, JS elsewhere)Showing one product at a time
Fan, accordion, bento tiles, slanted panels, hexagons, hanging cardsCSS:hover, clip-path, gridAll major browsersMenus and category entrances
Zoom transition, curtain wipe, blur to focusCSS@keyframes, clip-path, filterAll major browsersHero photos
Tile flip transition, background follows the slideCSS, JStransitions, IntersectionObserverAll major browsersCampaigns, showing product colors
Inertia drag, bounce and snap, skew on speed, drag-to-spin helix, swipe card stack, stretchy dragCSS, JSPointer EventsAll major browsersTactile portfolios, mobile galleries
Slow-on-hover loop, numbered, dialCSS, JSWeb Animations, scroll-snapAll major browsersLogo strips, photo slides, menu entrances

Check which browsers support scroll timelines and ::scroll-marker in Chrome for Developers: Carousels with CSS and MDN: Creating CSS carousels. The exported code stays still for people who turn on reduced motion.

Other carousel tools