DocumentationFlip Scroll

Flip Scroll

A scroll-triggered flip animation where elements rotate and transform as you scroll. Creates a dynamic, engaging scroll experience.

Install using CLI

npx shadcn@latest add "https://obsidianui.dev/r/flip-scroll.json"

Install Manually

1

Install dependencies

npm install framer-motion clsx tailwind-merge
2

Copy the source code

Copy into components/ui/flip-scroll.tsx

Note: Install via CLI for the full scroll-triggered animation implementation.

Props

Prop NameTypeDefaultDescription
itemsFlipItem[]-Array of items to flip through
classNamestring-Additional CSS classes