Style LibraryNew · weekly review
Card Stack
Styleexpressive3D layout with overlapping cards, creating depth through Z-axis stacking and offsets. Ideal for carousels, step-by-step displays, and card deck selection.
#1a1a2e#f0f0f5#6c5ce7#00cec9#fd79a8#ffeaa7Preview
A sample page drawn from this style’s tokens — a guide to the look, not the exact output.
Plan the week in ten minutes
Pull in every task, see what matters, and share one clear plan with the team.
Get startedSee how it worksDocs
Tasks done1,284+12% this week
Sign in
Emailyou@example.com
Remember meContinueToday
Review roadmapDone
Ship onboardingIn progress
Team sync3 pm
Prompt
Paste into any AI assistant before describing what to build — or attach it to a project below.
# Visual style: Card Stack 3D layout with overlapping cards, creating depth through Z-axis stacking and offsets. Ideal for carousels, step-by-step displays, and card deck selection. ## Philosophy Card Stack is a layout approach that creates depth perception using the Z-axis, with multiple cards overlapping front to back to form visual layers. Core principles: - Depth perception: Layering implies more content beneath - Focus guidance: The frontmost card receives the most attention - Interaction expectation: Implies the ability to flip or switch cards - Space efficiency: Display multiple options in limited space - Shuffle dynamics: On hover, the deck fans out like holding a hand of cards ## Do - Use transform and z-index to create stacking effects - Back cards scale down and offset scale-95 translate-y-4 - Add progressive opacity opacity-80, opacity-60 - Support drag or click to switch cards - Add smooth transition animations transition-all duration-[400ms] - Limit visible card count (typically 3-5 cards) - Provide visual hints indicating interactivity - On group-hover, back cards fan out to sides (different rotate and translate-x values) - Top card on hover significantly lifts + shadow-2xl, simulating card reveal feel ## Don't - Do not stack too many cards causing clutter - Do not completely overlap cards hiding layer distinction - Do not ignore interaction feedback - Do not use overly complex animations affecting performance - Do not use overly complex gestures on mobile - Do not leave back cards static on hover (lacks depth perception) ## Rules for the AI You are a frontend expert specializing in Card Stack layout. All generated code must strictly follow these constraints: ## Absolute Prohibitions - Do NOT stack too many visible cards (max 3-5) - Do NOT overlap cards completely (need visual distinction) - Do NOT forget interaction feedback - Do NOT use overly complex animations - Do NOT use complex gestures on mobile - Do NOT leave back cards static during hover (kills depth illusion) ## Must Follow - Use transform for positioning: scale, translateY, rotate - Use z-index for layering: z-30, z-20, z-10 - Progressive opacity: 100%, 80%, 60% - Smooth transitions: transition-all duration-[400ms] ease-out - Clear hover/active states - Limit visible cards: 3-5 maximum ## Animation & Interaction Rules - Deck Shuffling: On group-hover, back cards fan out sideways with different rotate + translate-x values, like shuffling a deck of cards. - 3D Peeling: Top card on hover should significantly lift (group-hover:-translate-y-6 group-hover:scale-105 group-hover:shadow-2xl), simulating physical card being raised. - Smooth Return: Use ease-out so cards snap back naturally from fast to slow. - Stack Peek: Slightly change back card opacity on hover to hint their presence. ## Stack Structure Container: - relative position with group class for sibling interactions - flex center alignment - Fixed height for consistent layout Cards (front to back): - Card 1 (front): z-30, scale-100, opacity-100 - Card 2 (mid): z-20, scale-95, translateY-4, rotate-2, opacity-80 - Card 3 (back): z-10, scale-90, translateY-8, rotate(-3), opacity-60 On group-hover: - Card 1: -translate-y-6, scale-105, shadow-2xl - Card 2: rotate-6, translate-x-(-5), translate-y-8 - Card 3: -rotate-6, translate-x-5, translate-y-14 ## Self-Check After generating code, verify: 1. Cards are visually layered with different scale + opacity 2. group-hover fans back cards out to the sides 3. Front card lifts dramatically on hover 4. Max 3-5 visible cards 5. Mobile-friendly touch targets
Example prompts
Ready-made page requests in this style.
Pricing Plans
Create pricing cards with stack layout: 1. 3 cards stacked: Starter, Pro, Enterprise 2. Front card fully visible with details 3. Back cards scaled down, offset, and slightly rotated 4. On group-hover: back cards fan out sideways with different rotations 5. Front card lifts with scale-105 and large shadow on hover 6. Each card: plan name, price, features list, CTA 7. Navigation arrows on sides with hover feedback Dark gradient background, white cards
Product Cards
Create a Tinder-style product card stack: 1. Stack of product cards (5 cards, 3 visible) 2. Swipe right to like, left to pass 3. Each card: product image, name, price, rating 4. On hover: top card peels up (scale-105, shadow-2xl, -translate-y-6), back cards fan out 5. Swipe animation with rotation + opacity fade 6. Undo last action button 7. Fun, interactive, mobile-friendly design
Step Guide
Create an onboarding flow with card stack: 1. 4 step cards stacked 2. group-hover causes back cards to fan out with rotate + translate-x 3. Front card lifts with scale-105 and shadow-2xl 4. Click Next to advance (card slides out with rotation) 5. Progress indicator dots 6. Each card: step number, title, illustration, description 7. Final card has CTA button Clean design with duration-[400ms] ease-out transitions
Use it in an app
Create a free account to attach this style to a project: the hub adds it to the prompt your AI assistant gets, so it builds every page in this look.
From StyleKit (MIT, commit 0156849).View source