About
Two photo decks unfold into a shallow orbit of glass-framed cards. Scroll or swipe to bring each photo to the front, or click a deck to play both galleries in sequence.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Liquid Glass Circle Carousel to your project and fits it to your theme.
Code
How Liquid Glass Circle Carousel is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import { useMemo } from "react";
import { LiquidGlassCircleCarousel, type GalleryDeck } from "@/components/ui/liquid-glass-circle-carousel";
const settings = {
firstDeckTitle: "Chromatic tides",
secondDeckTitle: "Rooms in light",
tourDuration: 16,
};
const galleries: readonly GalleryDeck[] = [
{
label: "Chromatic tides",
images: [
{
src: "https://cdn.21st.dev/assets/mirror/48/485dc4b6c48a1d351c269ace3f1f4fe1335dfdbc2beda52e3faf2b5775e3e298.webp",
title: "Pacific afterglow",
alt: "Sunlight shines through the crest of a curling turquoise wave.",
credit: "Original generated artwork",
},
{
src: "https://cdn.21st.dev/assets/mirror/1f/1f085a02bfdd68be0654a14210b9634aaf993e379f1fcf4b348dea5b0fccd3bb.webp",
title: "Tidal braid",
alt: "Aquamarine channels thread between pale sand and black rock, viewed from overhead.",
credit: "Original generated artwork",
},
{
src: "https://cdn.21st.dev/assets/mirror/62/62bf6052aa6f053f504035bae540b4e7fe9a01118cfeff43e72736d8f18c737a.webp",
title: "Night current",
alt: "A luminous apricot jellyfish drifts through dark blue water.",
credit: "Original generated artwork",
},
{
src: "https://cdn.21st.dev/assets/mirror/03/034726cc4db27512c802cc1e57490a3b65ce2beb1dbabd2179589bf92cb96335.webp",
title: "Breaker in copper",
alt: "A breaking wave throws copper-lit spray into the air beside a sea stack.",
credit: "Original generated artwork",
},
{
src: "https://cdn.21st.dev/assets/mirror/e0/e0195648fda247db589a12c5f609eb778a406e21ac70e7f91cda23b77b9873e1.webp",
title: "Kelp canopy",
alt: "Golden kelp fronds reach toward sunlight in blue-green water.",
credit: "Original generated artwork",
},
],
},
{
label: "Rooms in light",
images: [
{
src: "https://cdn.21st.dev/assets/mirror/07/0745e34aaa87de41c309eb7cc5bfa1d377aaeb5af47e0401e9e870bf778feaa4.webp",
title: "Travertine lounge",
alt: "An open living room pairs a pale stone staircase with cognac chairs and ochre wood.",
credit: "Alef Morais",
creditUrl: "https://unsplash.com/photos/LnlPgsSo8_c",
},
{
src: "https://cdn.21st.dev/assets/mirror/ab/abeb4e0e638a4ce6ba344e8e518dad2be3c69ae08087a032ac4506a6e51759a5.webp",
title: "Stair in sunlight",
alt: "Broad streaks of daylight cross a stone stair and its glass balustrade.",
credit: "Rhema Kallianpur",
creditUrl: "https://unsplash.com/photos/jbJ-_hw2yag",
},
{
src: "https://cdn.21st.dev/assets/mirror/43/43cec7763760054818fff5f74561556cab77b342f9baf69e873706ad9dea4953.webp",
title: "The stone shelf",
alt: "A framed print and small vessels sit on a stone ledge in a softly lit sitting room.",
credit: "SUHER DAA",
creditUrl: "https://unsplash.com/photos/ovhhw0HSFsw",
},
{
src: "https://cdn.21st.dev/assets/mirror/d2/d2ecc1120e41ef9f5f9dcd434a9e8fde9fccb18832322986ffc614d37d469ed2.webp",
title: "Window shadows",
alt: "Long angular window shadows fall across a pale wall in the afternoon sun.",
credit: "Suhyeon Choi",
creditUrl: "https://unsplash.com/photos/ehxwis6Ltxg",
},
{
src: "https://cdn.21st.dev/assets/mirror/be/be43ff03c1509c576aac890110b307bc70f9dfac4029a3291dbec79a41fb52b1.webp",
title: "Oak alcove",
alt: "A bed and a reading chair sit in a quiet room lined with warm oak panels.",
credit: "Le Quan",
creditUrl: "https://unsplash.com/photos/ErDrzSvSNv4",
},
],
},
];
export default function LiquidGlassCircleDemo(props: Partial<typeof settings>) {
const { firstDeckTitle, secondDeckTitle, tourDuration } = { ...settings, ...props };
const decks = useMemo(() => [
{ ...galleries[0], label: firstDeckTitle },
{ ...galleries[1], label: secondDeckTitle },
], [firstDeckTitle, secondDeckTitle]);
return <LiquidGlassCircleCarousel galleries={decks} duration={Math.max(1, tourDuration)}
style={{ width: "100vw", maxWidth: "100%", height: "max(320px, 100svh)" }} />;
}
















