20 CSS Image Sliders
20 hand-coded CSS image slider templates for product galleries, real-estate listings, before/after comparisons, testimonial carousels, and SaaS onboarding scrollers — pure-CSS radio-button hack (no JavaScript, Core Web Vitals safe), scroll-snap touch carousels, before/after comparison (dental cosmetic / renovation), e-commerce product showcases, full-screen split heroes, 3D rotating carousels, testimonial slides, logo marquees, and the native ::scroll-marker CSS Carousel spec. 19 demos are pure CSS; only demo 03 uses one oninput line. Scoped under .cis-NN for no-collision pasting, prefers-reduced-motion guarded, framework-agnostic.
Related22 CSS Image Carousels22 CSS Image Galleries17 CSS Range Sliders
Course pickPartner: Zero to Mastery
Affiliate linkWant to build production-ready CSS layouts, animations and UI from scratch?
You just browsed 20 image sliders. Learn the Flexbox, Grid and animation thinking behind them, so the next component starts in your head, not in a copy-paste.
Every ZTM course in one membership: $25/month, paid yearly at $299 · 30‑day money-back guarantee
The CSS Bootcamp. We may earn a commission, at no extra cost to you.
02. Scroll-Snap Touch Image Carousel (opens in a new tab)
03. Before / After Image Comparison Slider (opens in a new tab)
04. E-Commerce Product Showcase Card Slider (opens in a new tab)
05. Automatic Infinite-Loop Banner Slider (opens in a new tab)
06. Full-Screen Split Hero Image Slider (opens in a new tab)
07. Subgrid Synchronized Card Slider (opens in a new tab)
08. Split-Screen Vertical Carousel (opens in a new tab)
09. :has() Shuffling Card Deck (opens in a new tab)
10. Thumbnail Grid Pagination Slider (opens in a new tab)
11. Zoom-on-Hover Expanding Accordion Gallery (opens in a new tab)
12. Tabbed Category Content Slider (opens in a new tab)
13. 3D Rotating Carousel Slider (opens in a new tab)
14. Parallax Layered Depth Slider (opens in a new tab)
15. Fade & Blur Cinematic Transition Slider (opens in a new tab)
16. Testimonial & Reviews Card Slider (opens in a new tab)
17. App-Style Onboarding Scroller (opens in a new tab)
18. Logo Marquee Endless Ticker (opens in a new tab)
19. Native ::scroll-marker & ::scroll-button Slider (opens in a new tab)
20. Scroll-Driven Viewport Timeline Gallery (opens in a new tab)
Frequently asked questions
How do I build a pure CSS image slider with no JavaScript?
What is scroll-snap and when should I use it for an image carousel?
How does a CSS before/after image comparison slider work?
What are ::scroll-marker and ::scroll-button in the CSS Carousel spec?
How do I make my image slider Core Web Vitals safe?
How do I build a product image carousel for an e-commerce shop (Shopify, WooCommerce, Stripe)?
What is the best CSS carousel for a real-estate listing (Zillow, Redfin, Airbnb, Vrbo)?
How do I use logo marquee, testimonial slider, and onboarding scroller for SaaS landing pages?
Related collections
15 CSS 3D Tilt Hover Cards
15 mouse-aware 3D tilt hover cards — e-commerce product spotlight, glassmorphism parallax team card, interactive pricing tier, holographic NFT collectible, pop-out mascot, dark tech grid with border glow, media player album art, blog article preview, cyberpunk neon glow, dashboard KPI widget, minimalist real estate, flip-to-back tilt, mobile app showcase, course learning card, and a Pure CSS touch-friendly tilt. Vanilla JS writes --rx/--ry/--mx/--my; all rendering stays in CSS on the GPU.
24 CSS Animated Cards
24 hand-coded CSS animated card patterns organised by what triggers the motion, not by card style. Scroll and entrance triggers: staggered grid reveals, @starting-style mount-in, scroll-driven scale and fade on animation-timeline: view(), View Transitions API card-to-detail morphs, blur-to-sharp lazy image loading, and FLIP re-layout when a filter changes. State-change triggers: add-to-cart success morph, like and save particle burst, expand and collapse to intrinsic height with calc-size(), swipe-to-dismiss on Pointer Events, and skeleton-to-loaded crossfade. Data-driven triggers: count-up KPI metrics, SVG sparkline draw-on-enter, and progress ring fill on load. Ambient idle loops: breathing glow, floating drift, animated gradient mesh backgrounds, conic rotating borders, auto-cycling testimonial decks, and live status pulses. Plus four hover patterns where the effect is the topic itself: cursor spotlight, holographic foil glare, corner ribbon slide, and horizontal accordion expand. Every card is scoped under a .ac-NN prefix for no-collision pasting, guards prefers-reduced-motion, animates compositor-only properties, and ports unchanged to React, Vue, Svelte, Astro, Next.js and Tailwind.
22 CSS Avatars
22 hand-coded CSS avatars for chat apps, team dashboards, comment threads, account menus, and social profiles. Covers circular and squircle shapes, gradient and conic story rings, hexagon clip-path crops, online status dots, notification count badges, verified checkmarks, stacked facepiles with plus-N overflow, initials fallbacks for users without photos, broken-image recovery, avatar pickers, and a size scale system where the ring, badge, and status dot all scale from a single custom property.


















