About
A photo deck unfolds into a half-twisted loop of glass-framed cards. Scroll or swipe through the twist, then watch the cards gather and the next gallery open.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Liquid Glass Möbius Carousel to your project and fits it to your theme.
Code
How Liquid Glass Möbius 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 { LiquidGlassMobiusCarousel, type GalleryDeck } from "@/components/ui/liquid-glass-mobius-carousel";
const settings = {
firstDeckTitle: "Fold studies",
secondDeckTitle: "Silver facades",
tourDuration: 19,
};
const galleries: readonly GalleryDeck[] = [
{
label: "Fold studies",
images: [
{
src: "https://cdn.21st.dev/assets/mirror/01/013b83e0fcb1eb0f83921f1a911f7a169d7fc703e120e14057e1d1013a0e206e.webp",
title: "Violet return",
credit: "Original generated artwork",
alt: "A violet and silver titanium ribbon twists into a continuous loop against an aubergine background.",
},
{
src: "https://cdn.21st.dev/assets/mirror/92/92adf84f5871b74ae94b16b311ad6a165f0d08270f1762dca7e40c718a9d126e.webp",
title: "Magenta seam",
alt: "A brilliant pink fold turns into a shadow between sheets of violet.",
credit: "Milad Fakurian",
creditUrl: "https://unsplash.com/photos/u8Jn2rzYIps",
},
{
src: "https://cdn.21st.dev/assets/mirror/4a/4ac17e6f92dd3bded1767847e5e21cd6ff2a7ca55858cd1d58120aff75e07c5c.webp",
title: "Blue bevel",
alt: "Stacked diagonal planes catch narrow bands of blue and purple light.",
credit: "Martin Martz",
creditUrl: "https://unsplash.com/photos/RhF4D_sw6gk",
},
{
src: "https://cdn.21st.dev/assets/mirror/71/711c2010da00a9d0279c5c7a902dc8d47637a8ac95ff906b46b378ba45695272.webp",
title: "Vermilion loop",
alt: "A teal ribbon doubles back around a glowing vermilion opening.",
credit: "Martin Martz",
creditUrl: "https://unsplash.com/photos/h4qed_IO9d0",
},
{
src: "https://cdn.21st.dev/assets/mirror/0b/0bb86273fcf274b9e17e4ca17ccf292247d0a8aa2b7ee9559ca492986b101698.webp",
title: "Mercury",
alt: "A polished floating droplet reflects the horizon above low dark waves.",
credit: "Shubham Dhage",
creditUrl: "https://unsplash.com/photos/itmzGg5AgsI",
},
{
src: "https://cdn.21st.dev/assets/mirror/48/48313669841b0be71ca58f815b9c9ce3d9c6ce8908ae863f66b521899cd7546c.webp",
title: "Indigo fold",
alt: "An indigo band curves through a deep purple field into shadow.",
credit: "Martin Martz",
creditUrl: "https://unsplash.com/photos/X5fEKadz0Xc",
},
],
},
{
label: "Silver facades",
images: [
{
src: "https://cdn.21st.dev/assets/mirror/49/4911815a192f0bc4a475efeecf7ea61ddebc3fc82a2098bfbabd7ddbb933c694.webp",
title: "The silver ridge",
alt: "Overlapping pale silver walls rise at sharp angles into a blue sky.",
credit: "Anatolii Nesterov",
creditUrl: "https://unsplash.com/photos/X4K1DvQlgPQ",
},
{
src: "https://cdn.21st.dev/assets/mirror/fa/fa18732c87cef7739a273a702582710bcb465392da6719a38121d412159d5cd6.webp",
title: "Shadow fins",
alt: "A row of tapered architectural fins casts alternating black and white shadows.",
credit: "CHRSNDRSN",
creditUrl: "https://unsplash.com/photos/GzvP-5L2M4A",
},
{
src: "https://cdn.21st.dev/assets/mirror/38/385cd5ee73f7d7cd7eb86803f3c8c6e4c4350c24ececdda202e93faa2bb64091.webp",
title: "Glass lattice",
alt: "Projecting glass windows catch the light in a repeating square grid.",
credit: "Joel Filipe",
creditUrl: "https://unsplash.com/photos/ZMRMFULofus",
},
{
src: "https://cdn.21st.dev/assets/mirror/9b/9b86e0ce62a0eb2a4485f70e515c6f7ddfca4fb17a8e1b022c336214a030cc46.webp",
title: "Diagonal cut",
alt: "Black and silver cladding meet in a sharp triangle across a facade.",
credit: "Lou Brassard",
creditUrl: "https://unsplash.com/photos/vuNTWzg4zdo",
},
],
},
];
export default function LiquidGlassMobiusDemo(props: Partial<typeof settings>) {
const { firstDeckTitle, secondDeckTitle, tourDuration } = { ...settings, ...props };
const decks = useMemo(() => [
{ ...galleries[0], label: firstDeckTitle },
{ ...galleries[1], label: secondDeckTitle },
], [firstDeckTitle, secondDeckTitle]);
return <LiquidGlassMobiusCarousel galleries={decks} duration={Math.max(1, tourDuration)}
style={{ width: "100vw", maxWidth: "100%", height: "max(320px, 100svh)" }} />;
}
















