Scatter Deck

Scattered card deck feature grid with random positioning.

Main Features of Scatter Deck

How to Use Scatter Deck in Next.js

Installation Guide for Scatter Deck

Props

Customize the component with these props

PropertyTypeDefaultDescription
cards
Array<{title: string, color: string, rotate: number, z: number}>[{title: 'Motion', color: 'bg-[#ff4d4d]', rotate: -5, z: 10}, ...]Array of card objects with title, color (Tailwind class), rotation angle, and z-index.
backgroundColor
string#e5e5e5Background color (hex, rgb, or hsl).
gridSize
number400Grid size in pixels for positioning.
dragText
stringDrag MeText displayed on draggable cards.
backgroundText
stringSCATTERBackground text pattern.

When to Use

Ideal for creative studios, experimental art projects, and Next.js portfolios that want an interactive 'Scatter Deck' aesthetic. Use this feature layout for an Engaging experience where cards can be 'Thrown' and 'Dragged' across a physical canvas.

Best Practices

Maintain scalable component architecture by keeping the card count balanced. Follow React best practices by using Framer Motion for the drag-physics. Optimize for performance by managed the background text pattern repeats.

Why This Component Matters in Modern UI Development

Draggable card decks create a sense of direct engagement and playfulness. This production-ready UI template helpsคุณ build an interface that feels tactile and unique, turning static features into items for digital manipulation.

Frequently Asked Questions

QIs it really draggable?

Yes, each card features full Framer Motion drag functionality with physics-based momentum (constraints: true) for a realistic physical feel.

QCan I adjust the rotation?

Absolutely, each card's specific rotation and z-index can be configured in the data array to create the perfect 'Scattered' layout look.

QDoes it work on mobile?

Yes, it supports standard touch-drag events, allowing mobile users to 'flick' cards across the screen with their fingers.

Scatter Deck - React Feature Grid Component | Uilora