Performance
Needs attentionFrame rate: 60 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 9.9 KB · Runtime 195 KB
Card SpreadMITCardAnimata
A card React component by Animata. Collected unchanged from Animata under the MIT licence and shown here live.
Quality report
The grade and score come from automated checks run at build or test time. If a check did not run, it is marked Not tested — numbers are never invented.
Frame rate: 60 fps average, p5 59.5 · Long tasks: 0 tasks, 0 ms total, longest 0 ms · Source gzip 9.9 KB · Runtime 195 KB
Issues 0 · Screen reader: Pass
No continuous motion
No overflow · 29
Frame rate and long-task figures were measured in headless Chromium with software WebGL. They are only comparable between components on this site, and do not represent real devices.
Not applicable: no visible animation at rest. Hover-triggered animation was not tested.
No axe-core violations.

Checked Nov 15, 2026 · Figures come from an automated script, not from hand-written samples.
Shown at real size.
The copy starts with the licence notice. Keep it when you use the code.
<div id="root"></div>:root{--bg:#f6f4f0;--ink:#17181a;--background:40 20% 96%;--foreground:24 10% 8%;--card:0 0% 100%}html,body{min-height:100%;margin:0;background:var(--bg);color:var(--ink)}html,body{height:100%;overflow:hidden}body{display:grid;place-items:center}#root{display:grid;place-items:center;max-width:100%;max-height:100%;box-sizing:border-box;padding:16px;color:hsl(var(--foreground))}#root.full{width:100%;height:100%;padding:0}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-play-state:paused!important;transition-duration:0s!important}}
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:block))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0;--tw-outline-style:solid;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:"Paper Mono", ui-monospace, monospace;--color-amber-100:oklch(96.2% .059 95.617);--color-amber-200:oklch(92.4% .12 95.746);--color-amber-900:oklch(41.4% .112 45.904);--color-yellow-300:oklch(90.5% .182 98.111);--color-yellow-500:oklch(79.5% .184 86.047);--color-blue-300:oklch(80.9% .105 251.813);--color-blue-500:oklch(62.3% .214 259.815);--color-zinc-200:oklch(92% .004 286.32);--color-zinc-700:oklch(37% .013 285.805);--color-zinc-800:oklch(27.4% .006 286.033);--color-zinc-950:oklch(14.1% .005 285.823);--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--font-weight-semibold:600;--leading-snug:1.375;--radius-md:calc(var(--radius) - 2px);--radius-3xl:1.5rem;--ease-out:cubic-bezier(.22, 1, .36, 1);--default-transition-duration:.2s;--default-transition-timing-function:var(--ease-out);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono);--color-border:hsl(var(--border));--color-background:hsl(var(--background));--color-foreground:hsl(var(--foreground));--color-muted-foreground:hsl(var(--muted-foreground));--color-accent:hsl(var(--accent));--ease-apple:cubic-bezier(.4, 0, .6, 1)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}*{border-color:var(--color-border)}body{background-color:var(--color-background);color:var(--color-foreground)}:root{--background:0 0% 100%;--foreground:0 0% 11%;--card:0 0% 100%;--card-foreground:0 0% 11%;--popover:0 0% 100%;--popover-foreground:0 0% 11%;--primary:0 0% 11%;--primary-foreground:0 0% 100%;--secondary:0 0% 96%;--secondary-foreground:0 0% 11%;--muted:0 0% 96%;--muted-foreground:0 0% 43%;--accent:262 83% 58%;--accent-foreground:0 0% 100%;--destructive:0 84% 60%;--destructive-foreground:0 0% 98%;--border:0 0% 90%;--input:0 0% 90%;--ring:262 83% 58%;--radius:.75rem;--surface-alt:0 0% 96%;--surface-card:0 0% 100%;--surface-dark:0 0% 7%;--text-secondary:0 0% 43%;--ink:#76756f;--ink-faint:#e3e3e3;--link:210 100% 40%;--link-hover:210 100% 32%;--shadow-sm:0 1px 2px #0000000d;--shadow-md:0 2px 8px #0000000f, 0 4px 16px #0000000a;--shadow-lg:0 4px 12px #0000000f, 0 12px 32px #00000014;--footer-surface:#f5f5f7;--footer-ink:#0f1d42;--footer-ink-muted:#1a2d5c;--footer-accent:#1a4fff;--footer-gold:#fc0;--footer-category-title:#1d1d1f;--footer-category-link:#515154;--footer-stamp:#9f9f9f}.dark{--background:0 0% 0%;--foreground:0 0% 96%;--card:0 0% 4%;--card-foreground:0 0% 96%;--popover:0 0% 4%;--popover-foreground:0 0% 96%;--primary:0 0% 96%;--primary-foreground:0 0% 0%;--secondary:0 0% 10%;--secondary-foreground:0 0% 96%;--muted:0 0% 10%;--muted-foreground:0 0% 45%;--accent:262 83% 65%;--accent-foreground:0 0% 100%;--destructive:0 62% 30%;--destructive-foreground:0 0% 98%;--border:0 0% 12%;--input:0 0% 12%;--ring:262 83% 65%;--surface-alt:0 0% 4%;--surface-card:0 0% 6%;--surface-dark:0 0% 2%;--text-secondary:0 0% 55%;--ink:#e3e3e3;--ink-faint:#76756f;--link:262 80% 70%;--link-hover:262 80% 80%;--shadow-sm:none;--shadow-md:none;--shadow-lg:none;--footer-surface:#1d1d1f;--footer-ink:#f5f5f7;--footer-ink-muted:#86868b;--footer-accent:#fc0;--footer-gold:#fc0;--footer-category-title:#f5f5f7;--footer-category-link:#86868b;--footer-stamp:#48484a}}@layer components{.text-animator-demo .text-animation-stage,[data-text-animator-demo] .text-animation-stage{perspective:900px;padding:clamp(1rem,5cqi,1.5rem);font-size:clamp(1rem,10cqi,2rem);font-weight:500;line-height:1.1}.text-animator-demo .text-animation-title,.text-animator-demo .text-animation-kinetic-word,[data-text-animator-demo] .text-animation-title,[data-text-animator-demo] .text-animation-kinetic-word{text-align:center;letter-spacing:-.025em}.text-animator-demo .text-animation-title,[data-text-animator-demo] .text-animation-title{text-wrap:balance;font-variant-numeric:tabular-nums}.card-spread{--ease-throw:cubic-bezier(.22, 1.18, .36, 1);--ease-gather:cubic-bezier(.33, 1, .68, 1)}.card-spread-stage{width:100%;padding-inline:calc(var(--spacing) * 4);padding-block:calc(var(--spacing) * 8)}.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-stage{justify-content:center;align-items:flex-end;display:flex;overflow-x:hidden}.card-spread:has(.card-spread-toggle:checked) .card-spread-stage{overscroll-behavior-x:contain;overflow-x:auto}@media (min-width:64rem){.card-spread:has(.card-spread-toggle:checked) .card-spread-stage{justify-content:center;align-items:flex-end;display:flex}}.card-spread-container{--card-gap:.75rem;gap:calc(var(--spacing) * 3);flex-shrink:0;grid-template-columns:repeat(4,minmax(0,1fr));width:fit-content;min-width:50.25rem;display:grid}.card-spread-toggle{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.card-spread-open{cursor:pointer;border-style:var(--tw-border-style);border-width:1px;border-color:var(--color-border);background-color:var(--color-background);padding-inline:calc(var(--spacing) * 3.5);padding-block:calc(var(--spacing) * 1.5);font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium);color:var(--color-foreground);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));-webkit-user-select:none;user-select:none;border-radius:2147483647px;align-items:center;display:inline-flex;position:relative}.card-spread-open:hover{background-color:color-mix(in srgb, hsl(var(--accent)) 10%, transparent)}@supports (color:color-mix(in lab, red, red)){.card-spread-open:hover{background-color:color-mix(in oklab, var(--color-accent) 10%, transparent)}}.card-spread-open:has(.card-spread-toggle:focus-visible){outline-style:var(--tw-outline-style);outline-offset:2px;outline-width:2px;outline-color:#fc0}.card-spread-open__text--collapse,.card-spread:has(.card-spread-toggle:checked) .card-spread-open__text--expand{display:none}.card-spread:has(.card-spread-toggle:checked) .card-spread-open__text--collapse{display:inline}.card-spread-item{transform-origin:bottom}.card-spread-item:first-child{z-index:10}.card-spread-item:nth-child(2){z-index:20}.card-spread-item:nth-child(3){z-index:30}.card-spread-item:nth-child(4){z-index:40}.card-spread-item__internal{transform-origin:bottom}@media (prefers-reduced-motion:reduce){.card-spread-item__internal{transition-property:none}}.card-spread-item__internal{transition:transform .52s var(--ease-gather)}.card-spread:has(.card-spread-toggle:checked) .card-spread-item__internal{transition:transform .48s var(--ease-throw)}.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-item:first-child .card-spread-item__internal{transform:translate(calc(150% + 1.125rem))}.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-item:nth-child(2) .card-spread-item__internal{transform:translate(calc(50% + .375rem))}.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-item:nth-child(3) .card-spread-item__internal{transform:translate(calc(-50% - .375rem))}.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-item:nth-child(4) .card-spread-item__internal{transform:translate(calc(-150% - 1.125rem))}.card-spread:has(.card-spread-toggle:checked) .card-spread-item:first-child .card-spread-item__internal{transform:translate(0)rotate(-2deg)}.card-spread:has(.card-spread-toggle:checked) .card-spread-item:nth-child(2) .card-spread-item__internal{transform:translateY(.5rem)rotate(3deg)}.card-spread:has(.card-spread-toggle:checked) .card-spread-item:nth-child(3) .card-spread-item__internal{transform:translate(.25rem)rotate(-2deg)}.card-spread:has(.card-spread-toggle:checked) .card-spread-item:nth-child(4) .card-spread-item__internal{transform:translate(0)rotate(2deg)}.card-spread-item__hover{transform-origin:bottom;transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration));--tw-duration:.3s;--tw-ease:var(--ease-out);transition-duration:.3s;transition-timing-function:var(--ease-out)}@media (prefers-reduced-motion:reduce){.card-spread-item__hover{transition-property:none}}.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-stage:hover .card-spread-item:first-child .card-spread-item__hover{rotate:-1deg}.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-stage:hover .card-spread-item:nth-child(2) .card-spread-item__hover{rotate:-2deg}.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-stage:hover .card-spread-item:nth-child(3) .card-spread-item__hover{rotate:1deg}.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-stage:hover .card-spread-item:nth-child(4) .card-spread-item__hover{rotate:2deg}@media (prefers-reduced-motion:reduce){.card-spread-item__internal,.card-spread-item__hover{--tw-duration:.01ms!important;transition-duration:.01ms!important}}}@layer utilities{.relative{position:relative}.mt-2{margin-top:calc(var(--spacing) * 2)}.flex{display:flex}.size-5{width:calc(var(--spacing) * 5);height:calc(var(--spacing) * 5)}.h-64{height:calc(var(--spacing) * 64)}.min-h-0{min-height:0}.min-h-11{min-height:calc(var(--spacing) * 11)}.min-h-96{min-height:calc(var(--spacing) * 96)}.w-48{width:calc(var(--spacing) * 48)}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1}.shrink-0{flex-shrink:0}.touch-manipulation{touch-action:manipulation}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-0\.5{gap:calc(var(--spacing) * .5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-2\.5{gap:calc(var(--spacing) * 2.5)}.gap-4{gap:calc(var(--spacing) * 4)}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.rounded-3xl{border-radius:var(--radius-3xl)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-amber-200\/80{border-color:#fee685cc}@supports (color:color-mix(in lab, red, red)){.border-amber-200\/80{border-color:color-mix(in oklab, var(--color-amber-200) 80%, transparent)}}.border-border{border-color:var(--color-border)}.border-foreground{border-color:var(--color-foreground)}.border-muted-foreground\/35{border-color:color-mix(in srgb, hsl(var(--muted-foreground)) 35%, transparent)}@supports (color:color-mix(in lab, red, red)){.border-muted-foreground\/35{border-color:color-mix(in oklab, var(--color-muted-foreground) 35%, transparent)}}.bg-\[\#fced99\]{background-color:#fced99}.bg-background{background-color:var(--color-background)}.bg-foreground{background-color:var(--color-foreground)}.bg-transparent{background-color:#0000}.p-4{padding:calc(var(--spacing) * 4)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-4{padding-bottom:calc(var(--spacing) * 4)}.text-left{text-align:left}.font-sans{font-family:var(--font-sans)}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-background{color:var(--color-background)}.text-foreground{color:var(--color-foreground)}.text-muted-foreground{color:var(--color-muted-foreground)}.text-transparent{color:#0000}.text-zinc-800{color:var(--color-zinc-800)}.text-zinc-950{color:var(--color-zinc-950)}.line-through{text-decoration-line:line-through}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.dark\:border-amber-900\/40:where(.dark,.dark *){border-color:#7b330666}@supports (color:color-mix(in lab, red, red)){.dark\:border-amber-900\/40:where(.dark,.dark *){border-color:color-mix(in oklab, var(--color-amber-900) 40%, transparent)}}.dark\:bg-amber-100\/90:where(.dark,.dark *){background-color:#fef3c6e6}@supports (color:color-mix(in lab, red, red)){.dark\:bg-amber-100\/90:where(.dark,.dark *){background-color:color-mix(in oklab, var(--color-amber-100) 90%, transparent)}}@keyframes orbit-move{0%{transform:translate(-50%,-50%)rotateY(-40deg)rotateX(70deg)rotate(0)translate(100px)}to{transform:translate(-50%,-50%)rotateY(-40deg)rotateX(70deg)rotate(360deg)translate(100px)}}@keyframes counter-rotate{0%{opacity:1;transform:rotate(0)rotateX(-70deg)rotateY(40deg)scale(1)}25%{opacity:1;transform:rotate(-90deg)rotateX(-70deg)rotateY(40deg)scale(1.2)}50%{opacity:.3;transform:rotate(-180deg)rotateX(-70deg)rotateY(40deg)scale(.8)}75%{opacity:.3;transform:rotate(-270deg)rotateX(-70deg)rotateY(40deg)scale(.8)}to{opacity:1;transform:rotate(-360deg)rotateX(-70deg)rotateY(40deg)scale(1)}}@keyframes orbit-indexes{0%,25%,to{z-index:11}50%,99%{z-index:9}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}.preview{margin-bottom:calc(var(--spacing) * 4)}.preview-light{background-color:#fefefe;background-image:radial-gradient(#efefef 1px,#0000 1px),radial-gradient(#efefef 1px,#0000 1px);background-position:0 0,10px 10px;background-size:20px 20px}.preview-dark{background-image:radial-gradient(#6a6a6a 1px,#0000 1px),radial-gradient(#6a6a6a 1px,#0000 1px);background-position:0 0,10px 10px;background-size:20px 20px}.component-list-item{border-color:var(--color-zinc-200);background-color:#fefefe;background-image:radial-gradient(#efefef 1px,#0000 1px),radial-gradient(#efefef 1px,#0000 1px);background-position:0 0,10px 10px;background-size:20px 20px}.dark .component-list-item{border-color:var(--color-zinc-700);background-color:var(--color-zinc-950);background-image:radial-gradient(#6a6a6a 1px,#0000 1px),radial-gradient(#6a6a6a 1px,#0000 1px);background-position:0 0,10px 10px;background-size:20px 20px}[style*="opacity: 1"]>.scroll-baby{color:var(--color-yellow-300)}[style*="opacity: 1"]>.scroll-baby:where(.dark,.dark *){color:var(--color-yellow-500)}[style*="opacity: 1"]>.scroll-file{color:var(--color-blue-300)}[style*="opacity: 1"]>.scroll-file:where(.dark,.dark *){color:var(--color-blue-500)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}// animata source (MIT). npm i clsx react tailwind-merge · Tailwind CSS v4
// ── animata/card/card-spread.css (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/card/card-spread.css)
@reference "../../styles/globals.css";
@layer components {
.card-spread {
--ease-throw: cubic-bezier(0.22, 1.18, 0.36, 1);
--ease-gather: cubic-bezier(0.33, 1, 0.68, 1);
}
.card-spread-stage {
/*
* overflow-x: auto forces overflow-y: auto — pad vertically so spread
* tilt and hover peek are not clipped.
*/
@apply w-full px-4 py-8;
}
/* Deck: center the wide grid, clip sides — stack sits at grid center (col 1.5). */
.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-stage {
@apply flex items-end justify-center overflow-x-hidden;
}
/* Spread: horizontal scroll when needed; center the row when it fits. */
.card-spread:has(.card-spread-toggle:checked) .card-spread-stage {
@apply overflow-x-auto overscroll-x-contain;
}
@media (min-width: 64rem) {
.card-spread:has(.card-spread-toggle:checked) .card-spread-stage {
@apply flex items-end justify-center;
}
}
.card-spread-container {
--card-gap: 0.75rem;
/* 4× w-48 + 3× gap-3 — never shrink or deck offsets miss grid tracks */
@apply grid w-fit min-w-[calc(4*12rem+3*0.75rem)] shrink-0 grid-cols-4 gap-3;
}
.card-spread-toggle {
@apply sr-only;
}
.card-spread-open {
@apply relative inline-flex cursor-pointer items-center rounded-full border border-border bg-background px-3.5 py-1.5 text-sm font-medium text-foreground transition-colors select-none;
}
.card-spread-open:hover {
@apply bg-accent/10;
}
.card-spread-open:has(.card-spread-toggle:focus-visible) {
@apply outline-2 outline-[#ffcc00] outline-offset-2;
}
.card-spread-open__text--collapse {
@apply hidden;
}
.card-spread:has(.card-spread-toggle:checked) .card-spread-open__text--expand {
@apply hidden;
}
.card-spread:has(.card-spread-toggle:checked) .card-spread-open__text--collapse {
@apply inline;
}
.card-spread-item {
@apply origin-bottom;
}
.card-spread-item:nth-child(1) {
@apply z-10;
}
.card-spread-item:nth-child(2) {
@apply z-20;
}
.card-spread-item:nth-child(3) {
@apply z-30;
}
.card-spread-item:nth-child(4) {
@apply z-40;
}
.card-spread-item__internal {
@apply origin-bottom motion-reduce:transition-none;
transition: transform 520ms var(--ease-gather);
}
.card-spread:has(.card-spread-toggle:checked) .card-spread-item__internal {
transition: transform 480ms var(--ease-throw);
}
/*
* Deck — 1×4 grid, pull each card toward col 1.5 via transform.
* Same explicit calc() on all breakpoints so spread animates on mobile too.
*/
.card-spread:not(:has(.card-spread-toggle:checked)) .card-spread-item:nth-child(1)
.card-spread-item__internal {
transform: translate3d(calc(150% + 1.125rem), 0, 0);
}
.card-spread:not(:has(.card-spread-toggle:checked))
.card-spread-item:nth-child(2)
.card-spread-item__internal {
transform: translate3d(calc(50% + 0.375rem), 0, 0);
}
.card-spread:not(:has(.card-spread-toggle:checked))
.card-spread-item:nth-child(3)
.card-spread-item__internal {
transform: translate3d(calc(-50% - 0.375rem), 0, 0);
}
.card-spread:not(:has(.card-spread-toggle:checked))
.card-spread-item:nth-child(4)
.card-spread-item__internal {
transform: translate3d(calc(-150% - 1.125rem), 0, 0);
}
/* Spread — layout slots, light rotation */
.card-spread:has(.card-spread-toggle:checked) .card-spread-item:nth-child(1)
.card-spread-item__internal {
transform: translate3d(0, 0, 0) rotate(-2deg);
}
.card-spread:has(.card-spread-toggle:checked)
.card-spread-item:nth-child(2)
.card-spread-item__internal {
transform: translate3d(0, 0.5rem, 0) rotate(3deg);
}
.card-spread:has(.card-spread-toggle:checked)
.card-spread-item:nth-child(3)
.card-spread-item__internal {
transform: translate3d(0.25rem, 0, 0) rotate(-2deg);
}
.card-spread:has(.card-spread-toggle:checked)
.card-spread-item:nth-child(4)
.card-spread-item__internal {
transform: translate3d(0, 0, 0) rotate(2deg);
}
/* Hover peek — deck only */
.card-spread-item__hover {
@apply origin-bottom transition-transform duration-300 ease-out motion-reduce:transition-none;
}
.card-spread:not(:has(.card-spread-toggle:checked))
.card-spread-stage:hover
.card-spread-item:nth-child(1)
.card-spread-item__hover {
@apply -rotate-1;
}
.card-spread:not(:has(.card-spread-toggle:checked))
.card-spread-stage:hover
.card-spread-item:nth-child(2)
.card-spread-item__hover {
@apply -rotate-2;
}
.card-spread:not(:has(.card-spread-toggle:checked))
.card-spread-stage:hover
.card-spread-item:nth-child(3)
.card-spread-item__hover {
@apply rotate-1;
}
.card-spread:not(:has(.card-spread-toggle:checked))
.card-spread-stage:hover
.card-spread-item:nth-child(4)
.card-spread-item__hover {
@apply rotate-2;
}
@media (prefers-reduced-motion: reduce) {
.card-spread-item__internal,
.card-spread-item__hover {
@apply !duration-[0.01ms];
}
}
}
// ── animata/card/card-spread.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/card/card-spread.tsx)
import Notes, { NotesCard } from "@/animata/widget/notes";
import ShoppingList from "@/animata/widget/shopping-list";
import "./card-spread.css";
function Reminders() {
return (
<ShoppingList
title="Reminders"
items={[
{ id: "museum", title: "Book museum tickets" },
{ id: "groceries", title: "Buy groceries", checked: true },
{ id: "mom", title: "Call mom" },
]}
/>
);
}
function RemodelNotes() {
return (
<NotesCard title="Kitchen Remodel Ideas">
<div>Install a farmhouse sink for a rustic touch</div>
<div>Use classic subway tiles</div>
<div>Add an island for extra counter space</div>
<div>Opt for open shelving</div>
</NotesCard>
);
}
const cards = [
{ id: "notes", component: Notes },
{ id: "shopping-list", component: ShoppingList },
{ id: "remodel-notes", component: RemodelNotes },
{ id: "reminders", component: Reminders },
] as const;
export default function CardSpread() {
return (
<div className="card-spread flex min-h-96 w-full flex-col items-center justify-center gap-4">
<label className="card-spread-open">
<input type="checkbox" className="card-spread-toggle" />
<span className="card-spread-open__text card-spread-open__text--expand">Spread cards</span>
<span className="card-spread-open__text card-spread-open__text--collapse">Stack cards</span>
</label>
<div className="card-spread-stage group/stack">
<div className="card-spread-container">
{cards.map((item) => {
const Card = item.component;
return (
<div key={item.id} className="card-spread-item w-48 shrink-0">
<div className="card-spread-item__hover">
<div className="card-spread-item__internal">
<Card />
</div>
</div>
</div>
);
})}
</div>
</div>
</div>
);
}
// ── animata/widget/notes.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/widget/notes.tsx)
import type { ReactNode } from "react";
import { cn } from "@/lib/utils";
export type NotesCardProps = {
className?: string;
title?: string;
children?: ReactNode;
};
export function NotesCard({ className, title = "Note", children }: NotesCardProps) {
return (
<div
className={cn(
"flex h-64 w-48 flex-col rounded-3xl border border-amber-200/80 bg-[#fced99] p-4 font-sans shadow-md dark:border-amber-900/40 dark:bg-amber-100/90",
className,
)}
>
<p className="shrink-0 text-[15px] font-semibold leading-snug text-zinc-950">{title}</p>
<div className="mt-2 flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto text-[13px] leading-snug text-zinc-800">
{children}
</div>
</div>
);
}
export type NotesProps = {
className?: string;
title?: string;
lines?: string[];
};
const DEFAULT_LINES = [
"Has worked with ABC for the last 10 years",
"Built two dozen web apps",
"Latest work is live in stores",
"A cool guy",
];
export default function Notes({
className,
title = "About John",
lines = DEFAULT_LINES,
}: NotesProps) {
return (
<NotesCard className={className} title={title}>
{lines.map((line) => (
<p key={line}>{line}</p>
))}
</NotesCard>
);
}
// ── animata/widget/shopping-list.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/widget/shopping-list.tsx)
"use client";
import { useRef, useState } from "react";
import { cn } from "@/lib/utils";
export type ShoppingListItem = {
id: string;
title: string;
checked?: boolean;
};
export type ShoppingListProps = {
className?: string;
title?: string;
items?: ShoppingListItem[];
};
const DEFAULT_ITEMS: ShoppingListItem[] = [
{ id: "milk", title: "Milk" },
{ id: "eggs", title: "Eggs", checked: true },
{ id: "pepper", title: "Ground pepper", checked: true },
{ id: "spaghetti", title: "Spaghetti" },
{ id: "butter", title: "Butter" },
];
function CheckIcon({ className }: { className?: string }) {
return (
<svg
className={className}
width="14"
height="14"
viewBox="0 0 15 15"
fill="none"
xmlns="http://www.w3.org/2000/svg"
aria-hidden
>
<path
d="M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z"
fill="currentColor"
fillRule="evenodd"
clipRule="evenodd"
/>
</svg>
);
}
export default function ShoppingList({
className,
title = "Shopping list",
items = DEFAULT_ITEMS,
}: ShoppingListProps) {
const itemsRef = useRef<ShoppingListItem[] | null>(null);
const [rows, setRows] = useState<ShoppingListItem[]>([]);
if (items !== itemsRef.current) {
itemsRef.current = items;
setRows(items);
}
const toggle = (id: string) => {
setRows((prev) =>
prev.map((item) => (item.id === id ? { ...item, checked: !item.checked } : item)),
);
};
return (
<div
className={cn(
"flex h-64 w-48 flex-col relative overflow-hidden rounded-3xl border border-border bg-background font-sans shadow-md",
className,
)}
>
<p className="shrink-0 p-4 pb-2 text-[15px] font-semibold leading-snug text-foreground">
{title}
</p>
<ul className="px-4 pb-4 flex min-h-0 flex-1 flex-col gap-0.5 overflow-y-auto">
{rows.map((item) => (
<li key={item.id}>
<button
type="button"
role="checkbox"
aria-checked={item.checked ?? false}
onClick={() => toggle(item.id)}
className="touch-manipulation flex min-h-11 w-full items-center gap-2.5 rounded-md py-0.5 text-left"
>
<span
className={cn(
"flex size-5 shrink-0 items-center justify-center rounded-md border-2 transition-colors",
item.checked
? "border-foreground bg-foreground text-background"
: "border-muted-foreground/35 bg-transparent text-transparent",
)}
aria-hidden
>
<CheckIcon />
</span>
<span
className={cn(
"min-w-0 flex-1 text-[15px] leading-snug",
item.checked ? "text-muted-foreground line-through" : "text-foreground",
)}
>
{item.title}
</span>
</button>
</li>
))}
</ul>
</div>
);
}
// ── lib/utils.ts (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/lib/utils.ts)
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function absoluteUrl(path: string) {
return `${process.env.NEXT_PUBLIC_APP_URL}${path}`;
}
// Linear interpolation
export function lerp(a: number, b: number, n: number) {
return (1 - n) * a + n * b;
}
// Get distance between two points
export function getDistance(x1: number, y1: number, x2: number, y2: number) {
return Math.hypot(x2 - x1, y2 - y1);
}Controls · HTML · CSS · JS
Edit the code and tune it with the controls. The preview updates as you type.

This component runs from a bundled build, so its script is read-only here. Edit the HTML and CSS; the full source is in the Code tab.
Edit every component live, tune it with controls, download the full source and copy the advanced prompts.
$49 one-timePlaceholder price
Test mode: no real payment is taken.
Free: preview, copy buttons and the lesson notes.
Notes, a shopping list and reminders sit stacked like paper and fan out when you hover, so many small cards fit in one spot.
Productivity app previews, widget showcases and dashboards.
Change the cards array, the spread offset and rotation for each card and the transition timing.
Add the "Spreading card stack" component from Animata (github.com/codse/animata) (MIT) to my React + Tailwind CSS app. Source file: https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/card/card-spread.tsx. Notes, a shopping list and reminders sit stacked like paper and fan out when you hover, so many small cards fit in one spot. Use it for: Productivity app previews, widget showcases and dashboards. Settings to tune: Change the cards array, the spread offset and rotation for each card and the transition timing. Support light and dark themes and respect prefers-reduced-motion. Keep the MIT licence notice.
A longer prompt with tuning, accessibility and integration steps.