All-Access · 26 templates$1636.97$99/year — save 93%Get access
  • HomeHome
  • TemplatesTemplates28
  • ComponentsComponents78
  • PricingPricing
  • BlogBlog
  • Need a Website?Need a Website?New
Unlock All AccessUnlock All Access

Our latest template collection

Ready-to-launch sites for real estate agents, service businesses, and local brands — built to rank, load fast, and convert.

Explore All TemplatesExplore All Templates

Fanfare - Festival & Event Website Template

Fanfare is a colourful festival and event website template: poster hero, flip-card lineup, programme with saved sessions, passes, venue. Next.js, Astro, Sanity.

Download Template
Fanfare - Festival & Event Website Template

Plenar - Conference & Event Website Template

Plenar is a premium conference and event website template: countdown hero, speakers, schedule with saved sessions, tickets, venue map. Next.js, Astro, Sanity.

Download Template
Plenar - Conference & Event Website Template

Vardane - Luxury Expedition & Mountaineering Website Template

Vardane is a premium website template for mountaineering and expedition companies: film hero, route map, itineraries, departures. Next.js, Astro, Sanity.

Download Template
Vardane - Luxury Expedition & Mountaineering Website Template
ComponentsCarousel

Infinite Image Carousel

View code
Full screen

An endless photo strip that scrolls sideways with pure CSS and pauses on hover. Tailwind CSS, no JavaScript.

InfiniteImageCarousel.tsx
// Endless photo strip that scrolls sideways (CSS only) and pauses on hover.
// Pure Tailwind, no dependencies. Works with Tailwind v3 and v4.

type Props = {
  images?: { src: string; alt: string }[];
  duration?: number;
};

const img = (id: string) => `https://images.unsplash.com/photo-${id}?w=600&q=75&auto=format&fit=crop`;

const DEFAULT_IMAGES = [
  { src: img("1522708323590-d24dbb6b0267"), alt: "Bright open-plan living room" },
  { src: img("1586023492125-27b2c045efd7"), alt: "Yellow armchair in a minimal room" },
  { src: img("1560184897-cca79b749615"), alt: "Living room with a fireplace" },
  { src: img("1512917774080-9991f1c4c750"), alt: "White modern villa with a pool" },
  { src: img("1664225398704-993a0b392a42"), alt: "Open kitchen and lounge" },
  { src: img("1707189855420-0e0e7ba3e384"), alt: "Spacious family room" },
];

export default function InfiniteCarousel({ images = DEFAULT_IMAGES, duration = 30 }: Props) {
  const row = (
    <div className="flex shrink-0">
      {images.map((image) => (
        <div key={image.src} className="relative mx-2 h-[350px] w-72 shrink-0 overflow-hidden">
          <img src={image.src} alt={image.alt} loading="lazy" className="h-full w-full object-cover" />
        </div>
      ))}
    </div>
  );

  return (
    <section className="bg-white py-16 md:py-28">
      <style>{`@keyframes clay-marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }`}</style>
      <div className="group w-full overflow-hidden">
        <div
          className="flex w-max group-hover:[animation-play-state:paused] motion-safe:animate-[clay-marquee_var(--duration)_linear_infinite]"
          style={{ "--duration": `${duration}s` } as React.CSSProperties}
        >
          {row}
          <div aria-hidden className="flex">
            {row}
          </div>
        </div>
      </div>
    </section>
  );
}

How to use it

  1. Make sure your Next.js or React project has Tailwind CSS set up (v3 or v4 both work).
  2. Create components/InfiniteImageCarousel.tsx and paste the code.
  3. Import it into a page and replace the sample text and images with your own.
Clay - Modern Real Estate Next.js Template

From the full template

ClayFree

Every page, Sanity CMS and SEO already set up. This section is one of 6 you can try free.

Get the full template Get the full template Live preview Live preview
Share
Category
Carousel
Template
Clay
Dependencies
None, just React
Works with
Next.js, React, Tailwind CSS v3 & v4
Added
Apr 15, 2026

More from Clay

See the full template
Property Listing Cards
Feature

Property Listing Cards

Testimonial Slider
Testimonial

Testimonial Slider

Accordion FAQs
Accordion

Accordion FAQs

Features Classic
Feature

Features Classic

Features Creative
Feature

Features Creative

More carousel

View all
Arched Portrait Carousel
Carousel

Arched Portrait Carousel

Centered Loop Slider
Carousel

Centered Loop Slider

Curved 3D Carousel
Carousel

Curved 3D Carousel

Ready for a faster site that's easier to edit?

Book a free 30-minute call. We'll review your current site and send a fixed-price plan. No pressure, no pitch.

Book Free Call Book Free Call No commitment required

Fast Next.js + Sanity websites, built for you or ready to launch with our templates.

Book a Free Call Book a Free Call
Services
  • Web Design
  • UI/UX Design
  • Framer Dev
  • Webflow Dev
  • Custom Dev
  • Sanity CMS
Resources
  • Templates
  • Pricing
  • License
  • Components
  • Blog
  • Case Studies
Company
  • About Us
  • Contact
  • Privacy Policy
  • Terms & Conditions
  • Refund Policy
© 2026 rayso.studio — All rights reservedDesigned & built in-house Remote-first agency
Let's TalkLet's Talk