vertical-fanned-cards
Skill0 starsChanged 4 months agoMITView on GitHub
Vertical fanned card carousel where cards stack and fan vertically. Active card centered, adjacent cards peek above/below (dimmed, scaled). Auto-cycles when scrolled into view, stops on user interaction. Swipe up/down navigation.
In this repository37 other files it gives its agents.
- .agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- vercel-composition-patterns/AGENTS.mdAGENTS.md
- senior-frontendSkill
- vercel-composition-patternsSkill
- bento-designSkill
- fanned-cardsSkill
- flip-cardSkill
- floating-quotesSkill
- githubSkill
- glassmorphism-uiSkill
- gmail-proxySkill
- googleSkill
- hippocampusSkill
- html-pdf-exportSkill
- iframe-previewSkill
- infinite-canvasSkill
- matrix-textSkill
- nextjs-apiSkill
- nextjs-expertSkill
- pinterestSkill
- railway-deploySkill
- remotion-videoSkill
- scramble-textSkill
- scroll-video-heroSkill
- senior-frontendSkill
- SEOSkill
- ship-websiteSkill
- sound-engineSkill
- stripe-best-practicesSkill
- tilt-cardSkill
- tube-summarySkill
- upload-postSkill
- vercel-composition-patternsSkill
- vercel-deploySkill
- vercel-react-best-practicesSkill
- video-contentSkill
- war-roomSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 39
Use useInView from Framer Motion for auto-cycle trigger
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vertical Fanned Cards
A vertical card carousel where the active card is prominent and adjacent cards peek from above and below, creating a fanned/stacked effect. Auto-advances when visible.
When to Use
- Side-by-side content displays (two carousels next to text)
- Compact card browsing in constrained width
- Portfolio / timeline items in vertical layout
- Any content that benefits from vertical card browsing
Props
| Prop | Type | Default | Description |
items | T[] | required | Array of data items |
renderCard | (item, index, isActive) => ReactNode | required | Card renderer |
cardHeight | number | 155 | Height of each card in px |
overlap | number | 22 | How much adjacent cards overlap |
Behavior
- Swipe up/down (30px threshold) to navigate
- Click any visible card to jump to it
- Auto-cycles every 2.5s when scrolled into view
- Auto-cycle stops permanently on any user interaction
- Vertical pagination indicators (dot indicators) along left edge, active dot stretches to pill
- ▴/▾ arrow buttons for click navigation
Key Lessons
cardHeight - overlapdetermines the vertical spacing between card centers- Cards beyond 2 positions from active should be
opacity: 0to prevent pile-up - Use
useInViewfrom Framer Motion for auto-cycle trigger - Track
userInteractedstate to disable auto-cycle permanently once touched - Visible container height =
cardHeight + overlap * 2 + 20
Reference Implementation
See reference/VerticalFannedCards.tsx
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

