Rendimiento
Requiere atenciónFrecuencia de fotogramas: 56.7 fps de media, p5 30 · Tareas largas: 0 tareas, 0 ms en total, la más larga 0 ms · Código gzip 11 KB · En ejecución 203 KB
Collab CardMITTarjetaAnimata
Componente React de Tarjeta de Animata. Recopilado sin cambios de Animata bajo la licencia MIT y mostrado aquí en directo.
Informe de calidad
La nota y la puntuación proceden de comprobaciones automáticas hechas en la compilación o en las pruebas. Si una comprobación no se ejecutó, se marca Como no comprobada: nunca se inventan cifras.
Frecuencia de fotogramas: 56.7 fps de media, p5 30 · Tareas largas: 0 tareas, 0 ms en total, la más larga 0 ms · Código gzip 11 KB · En ejecución 203 KB
Problemas 1 · Lector de pantalla: Correcto
Respeta el movimiento reducido
Sin desbordamiento
La frecuencia de fotogramas y las tareas largas se midieron en Chromium sin interfaz, con WebGL por software. Solo son comparables entre componentes de este sitio y no representan un dispositivo real.

Comprobado el 15 nov 2026 · Las cifras salen de un script automatico, no de ejemplos escritos a mano.
Se muestra a tamaño real.
La copia empieza con el aviso de licencia. Consérvalo al usar el código.
<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-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction: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-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-content:"";--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}}}@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-yellow-300:oklch(90.5% .182 98.111);--color-yellow-500:oklch(79.5% .184 86.047);--color-emerald-400:oklch(76.5% .177 163.223);--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-950:oklch(14.1% .005 285.823);--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-medium:500;--font-weight-semibold:600;--tracking-tight:-.025em;--leading-snug:1.375;--leading-relaxed:1.625;--radius-xl:.75rem;--radius-2xl:1rem;--ease-out:cubic-bezier(.22, 1, .36, 1);--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:hsl(var(--muted));--color-muted-foreground:hsl(var(--muted-foreground));--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}.collab-cursor{transform-origin:20% 20%;will-change:transform;animation-fill-mode:both;display:inline-block}.collab-cursor--host{animation:9s ease-in-out infinite collab-host}.collab-cursor--first{animation:5.5s ease-in-out infinite collab-first}.collab-cursor--second{animation:5.5s ease-in-out .8s infinite collab-second}.collab-cursor [data-burst]{opacity:0;animation:5.5s ease-in-out infinite both collab-burst}.collab-cursor--first [data-burst]{animation-delay:1.1s}.collab-cursor--second [data-burst]{animation-delay:2.7s}.collab-live-ping{animation:2.4s cubic-bezier(0,0,.2,1) infinite collab-ping}@keyframes collab-host{0%,to{transform:translate(0)rotate(-14deg)}22%{transform:translate(54cqi,2cqi)rotate(-4deg)}48%{transform:translate(56cqi,19cqi)rotate(10deg)}72%{transform:translate(-1cqi,21cqi)rotate(-2deg)}}@keyframes collab-first{0%,to{transform:translate(0)rotate(0)}30%{transform:translate(-1.2cqi,-1cqi)rotate(-5deg)}60%{transform:translate(.8cqi,.6cqi)rotate(3deg)}}@keyframes collab-second{0%,to{transform:translate(0)rotate(0)}35%{transform:translate(1.4cqi,-.8cqi)rotate(6deg)}65%{transform:translate(-.6cqi,.6cqi)rotate(-3deg)}}@keyframes collab-burst{0%,14%{opacity:0;transform:scale(.4)}22%{opacity:1;transform:scale(1)}34%,to{opacity:0;transform:scale(1.5)}}@keyframes collab-ping{0%{opacity:.7;transform:scale(1)}75%,to{opacity:0;transform:scale(2.4)}}@media (prefers-reduced-motion:reduce){.collab-cursor,.collab-cursor [data-burst],.collab-live-ping{opacity:1;animation:none;transform:none}}}@layer utilities{.\@container{container-type:inline-size}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-x-\[5cqi\]{inset-inline:5cqi}.-top-\[0\.9cqi\]{top:-.9cqi}.top-\[-0\.7cqi\]{top:-.7cqi}.top-\[-3\.2cqi\]{top:-3.2cqi}.top-\[-3\.6cqi\]{top:-3.6cqi}.top-\[4cqi\]{top:4cqi}.-right-\[0\.9cqi\]{right:-.9cqi}.right-\[-0\.7cqi\]{right:-.7cqi}.right-\[-1\.8cqi\]{right:-1.8cqi}.right-\[-2\.8cqi\]{right:-2.8cqi}.-bottom-\[0\.9cqi\]{bottom:-.9cqi}.bottom-\[-0\.7cqi\]{bottom:-.7cqi}.bottom-\[-2\.9cqi\]{bottom:-2.9cqi}.-left-\[0\.9cqi\]{left:-.9cqi}.left-\[-0\.7cqi\]{left:-.7cqi}.left-\[-2\.8cqi\]{left:-2.8cqi}.isolate{isolation:isolate}.-z-10{z-index:calc(10 * -1)}.z-10{z-index:10}.col-span-2{grid-column:span 2/span 2}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:0}.container{width:100%;margin-inline:auto;padding-inline:1rem}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}.-ml-\[1\.08cqi\]{margin-left:-1.08cqi}.block{display:block}.flex{display:flex}.grid{display:grid}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.aspect-3\/2{aspect-ratio:3/2}.size-\[3\.25cqi\]{width:3.25cqi;height:3.25cqi}.size-full{width:100%;height:100%}.h-\[1\.7cqi\]{height:1.7cqi}.h-\[3cqi\]{height:3cqi}.h-\[6\.5cqi\]{height:6.5cqi}.h-full{height:100%}.min-h-40{min-height:calc(var(--spacing) * 40)}.w-\[1\.7cqi\]{width:1.7cqi}.w-\[3cqi\]{width:3cqi}.w-\[6\.5cqi\]{width:6.5cqi}.w-\[80\%\]{width:80%}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl)}.max-w-\[88\%\]{max-width:88%}.max-w-full{max-width:100%}.min-w-0{min-width:0}.shrink-0{flex-shrink:0}.-scale-x-100{--tw-scale-x:calc(100% * -1);scale:var(--tw-scale-x) var(--tw-scale-y)}.list-none{list-style-type:none}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.place-items-center{place-items:center}.items-baseline{align-items:baseline}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-4{gap:calc(var(--spacing) * 4)}.gap-\[1\.4cqi\]{gap:1.4cqi}.gap-\[2cqi\]{gap:2cqi}.gap-\[3\.2cqi\]{gap:3.2cqi}.gap-x-\[1\.5cqi\]{column-gap:1.5cqi}.gap-y-\[1\.2cqi\]{row-gap:1.2cqi}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[0\.25cqi\]{border-radius:.25cqi}.rounded-\[1\.8cqi\]{border-radius:1.8cqi}.rounded-full{border-radius:2147483647px}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-dashed{--tw-border-style:dashed;border-style:dashed}.border-\[\#0D99FF\]\/75{border-color:oklab(66.9841% -.0648249 -.170866/.75)}.border-border{border-color:var(--color-border)}.bg-\[\#111114\]{background-color:#111114}.bg-\[\#A259FF\]{background-color:#a259ff}.bg-\[\#FF7262\]{background-color:#ff7262}.bg-\[oklch\(0\.26_0\.012_285\)\]{background-color:oklch(26% .012 285)}.bg-emerald-400{background-color:var(--color-emerald-400)}.bg-emerald-400\/70{background-color:#00d294b3}@supports (color:color-mix(in lab, red, red)){.bg-emerald-400\/70{background-color:color-mix(in oklab, var(--color-emerald-400) 70%, transparent)}}.bg-muted\/50{background-color:color-mix(in srgb, hsl(var(--muted)) 50%, transparent)}@supports (color:color-mix(in lab, red, red)){.bg-muted\/50{background-color:color-mix(in oklab, var(--color-muted) 50%, transparent)}}.bg-\[linear-gradient\(165deg\,\#18181f_0\%\,\#0c0c10_55\%\,\#09090c_100\%\)\]{background-image:linear-gradient(165deg,#18181f 0%,#0c0c10 55%,#09090c 100%)}.bg-\[radial-gradient\(ellipse_70\%_55\%_at_18\%_88\%\,color-mix\(in_oklch\,\#A259FF_42\%\,transparent\)_0\%\,transparent_70\%\)\,radial-gradient\(ellipse_60\%_50\%_at_88\%_22\%\,color-mix\(in_oklch\,\#FF7262_32\%\,transparent\)_0\%\,transparent_68\%\)\]{background-image:radial-gradient(70% 55% at 18% 88%,oklch(63.0928% .234933 299.835/.42) 0%,#0000 70%),radial-gradient(60% 50% at 88% 22%,oklch(71.9246% .175189 28.6878/.32) 0%,#0000 68%)}.bg-\[radial-gradient\(rgba\(255\,255\,255\,0\.32\)_1px\,transparent_1\.2px\)\]{background-image:radial-gradient(#ffffff52 1px,#0000 1.2px)}.\[mask-image\:radial-gradient\(ellipse_at_center\,black_40\%\,transparent_88\%\)\]{-webkit-mask-image:radial-gradient(#000 40%,#0000 88%);mask-image:radial-gradient(#000 40%,#0000 88%)}.\[background-size\:14px_14px\]{background-size:14px 14px}.p-0{padding:0}.p-5{padding:calc(var(--spacing) * 5)}.px-\[2\.8cqi\]{padding-inline:2.8cqi}.px-\[5\.5cqi\]{padding-inline:5.5cqi}.py-\[0\.55cqi\]{padding-block:.55cqi}.py-\[4\.2cqi\]{padding-block:4.2cqi}.pt-\[9cqi\]{padding-top:9cqi}.pb-\[5cqi\]{padding-bottom:5cqi}.text-center{text-align:center}.font-\(family-name\:--font-display\){font-family:var(--font-display)}.font-\(family-name\:--font-mono\){font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-\[1\.65cqi\]{font-size:1.65cqi}.text-\[2\.4cqi\]{font-size:2.4cqi}.text-\[2\.75cqi\]{font-size:2.75cqi}.text-\[3\.5cqi\]{font-size:3.5cqi}.text-\[3\.85cqi\]{font-size:3.85cqi}.text-\[17\.5cqi\]{font-size:17.5cqi}.leading-\[0\.92\]{--tw-leading:.92;line-height:.92}.leading-none{--tw-leading:1;line-height:1}.leading-relaxed{--tw-leading:var(--leading-relaxed);line-height:var(--leading-relaxed)}.leading-snug{--tw-leading:var(--leading-snug);line-height:var(--leading-snug)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-\[-0\.035em\]{--tw-tracking:-.035em;letter-spacing:-.035em}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.text-pretty{text-wrap:pretty}.text-\[\#0D99FF\]{color:#0d99ff}.text-\[\#A259FF\]{color:#a259ff}.text-\[\#FF7262\]{color:#ff7262}.text-muted-foreground{color:var(--color-muted-foreground)}.text-white{color:var(--color-white)}.text-white\/55{color:#ffffff8c}@supports (color:color-mix(in lab, red, red)){.text-white\/55{color:color-mix(in oklab, var(--color-white) 55%, transparent)}}.text-white\/75{color:#ffffffbf}@supports (color:color-mix(in lab, red, red)){.text-white\/75{color:color-mix(in oklab, var(--color-white) 75%, transparent)}}.text-white\/80{color:#fffc}@supports (color:color-mix(in lab, red, red)){.text-white\/80{color:color-mix(in oklab, var(--color-white) 80%, transparent)}}.text-white\/88{color:#ffffffe0}@supports (color:color-mix(in lab, red, red)){.text-white\/88{color:color-mix(in oklab, var(--color-white) 88%, transparent)}}.text-white\/95{color:#fffffff2}@supports (color:color-mix(in lab, red, red)){.text-white\/95{color:color-mix(in oklab, var(--color-white) 95%, transparent)}}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.opacity-\[0\.16\]{opacity:.16}.shadow-\[0_0_6px_rgba\(52\,211\,153\,0\.75\)\]{--tw-shadow:0 0 6px var(--tw-shadow-color,#34d399bf);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[0_2px_4px_rgba\(0\,0\,0\,0\.35\)\]{--tw-shadow:0 2px 4px var(--tw-shadow-color,#00000059);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_rgba\(255\,255\,255\,0\.2\)\]{--tw-shadow:inset 0 1px 0 var(--tw-shadow-color,#fff3);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-\[inset_0_1px_0_rgba\(255\,255\,255\,0\.14\)\]{--tw-shadow:inset 0 1px 0 var(--tw-shadow-color,#ffffff24);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px 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)}.ring-1{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-2{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-\[1\.5px\]{--tw-ring-shadow:var(--tw-ring-inset, ) 0 0 0 calc(1.5px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.ring-\[\#0D99FF\]{--tw-ring-color:#0d99ff}.ring-\[\#0e0e12\]{--tw-ring-color:#0e0e12}.ring-white\/10{--tw-ring-color:#ffffff1a}@supports (color:color-mix(in lab, red, red)){.ring-white\/10{--tw-ring-color:color-mix(in oklab, var(--color-white) 10%, transparent)}}.drop-shadow-\[0_2px_4px_rgba\(0\,0\,0\,0\.28\)\]{--tw-drop-shadow-size:drop-shadow(0 2px 4px var(--tw-drop-shadow-color,#00000047));--tw-drop-shadow:var(--tw-drop-shadow-size);filter:var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, )}.before\:absolute:before{content:var(--tw-content);position:absolute}.before\:inset-\[35\%\]:before{content:var(--tw-content);inset:35%}.before\:rounded-full:before{content:var(--tw-content);border-radius:2147483647px}.before\:bg-current:before{content:var(--tw-content);background-color:currentColor}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:inset-0:after{content:var(--tw-content);inset:0}.after\:rounded-full:after{content:var(--tw-content);border-radius:2147483647px}.after\:bg-\[conic-gradient\(from_0deg\,transparent_0_8\%\,currentColor_8\%_12\%\,transparent_12\%_33\%\,currentColor_33\%_37\%\,transparent_37\%_58\%\,currentColor_58\%_62\%\,transparent_62\%_83\%\,currentColor_83\%_87\%\,transparent_87\%\)\]:after{content:var(--tw-content);background-image:conic-gradient(from 0deg,transparent 0 8%,currentColor 8% 12%,transparent 12% 33%,currentColor 33% 37%,transparent 37% 58%,currentColor 58% 62%,transparent 62% 83%,currentColor 83% 87%,transparent 87%)}.after\:mask-\[radial-gradient\(circle\,transparent_38\%\,black_40\%\,black_60\%\,transparent_62\%\)\]:after{content:var(--tw-content);-webkit-mask-image:radial-gradient(circle,#0000 38%,#000 40% 60%,#0000 62%);mask-image:radial-gradient(circle,#0000 38%,#000 40% 60%,#0000 62%)}@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-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@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-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{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-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-content{syntax:"*";inherits:false;initial-value:""}// animata source (MIT). npm i clsx react tailwind-merge · Tailwind CSS v4
// ── animata/card/collab-card.css (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/card/collab-card.css)
@layer components {
.collab-cursor {
display: inline-block;
transform-origin: 20% 20%;
will-change: transform;
animation-fill-mode: both;
}
.collab-cursor--host {
animation: collab-host 9s ease-in-out infinite;
}
.collab-cursor--first {
animation: collab-first 5.5s ease-in-out infinite;
}
.collab-cursor--second {
animation: collab-second 5.5s ease-in-out infinite 0.8s;
}
.collab-cursor [data-burst] {
opacity: 0;
animation: collab-burst 5.5s ease-in-out infinite;
animation-fill-mode: both;
}
.collab-cursor--first [data-burst] {
animation-delay: 1.1s;
}
.collab-cursor--second [data-burst] {
animation-delay: 2.7s;
}
.collab-live-ping {
animation: collab-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes collab-host {
0%,
100% {
transform: translate3d(0, 0, 0) rotate(-14deg);
}
22% {
transform: translate3d(54cqi, 2cqi, 0) rotate(-4deg);
}
48% {
transform: translate3d(56cqi, 19cqi, 0) rotate(10deg);
}
72% {
transform: translate3d(-1cqi, 21cqi, 0) rotate(-2deg);
}
}
@keyframes collab-first {
0%,
100% {
transform: translate3d(0, 0, 0) rotate(0deg);
}
30% {
transform: translate3d(-1.2cqi, -1cqi, 0) rotate(-5deg);
}
60% {
transform: translate3d(0.8cqi, 0.6cqi, 0) rotate(3deg);
}
}
@keyframes collab-second {
0%,
100% {
transform: translate3d(0, 0, 0) rotate(0deg);
}
35% {
transform: translate3d(1.4cqi, -0.8cqi, 0) rotate(6deg);
}
65% {
transform: translate3d(-0.6cqi, 0.6cqi, 0) rotate(-3deg);
}
}
@keyframes collab-burst {
0%,
14% {
opacity: 0;
transform: scale(0.4);
}
22% {
opacity: 1;
transform: scale(1);
}
34%,
100% {
opacity: 0;
transform: scale(1.5);
}
}
@keyframes collab-ping {
0% {
transform: scale(1);
opacity: 0.7;
}
75%,
100% {
transform: scale(2.4);
opacity: 0;
}
}
@media (prefers-reduced-motion: reduce) {
.collab-cursor,
.collab-cursor [data-burst],
.collab-live-ping {
animation: none;
opacity: 1;
transform: none;
}
}
}
// ── animata/card/collab-card.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/card/collab-card.tsx)
import { cn } from "@/lib/utils";
import "./collab-card.css";
export interface Collaborator {
name: string;
/** Tailwind background class for the pill. */
pill: string;
/** Tailwind text class for the pill label. */
pillText?: string;
/** Tailwind text color class for the cursor (sets `color`, used by SVG `fill`). */
cursor: string;
}
export interface CollabCardProps {
greeting?: string;
eyebrow?: string;
intro?: string;
conjunction?: string;
trailing?: string;
/** Status line beside the live dot, e.g. `live · 4 editing`. */
liveLabel?: string;
/** Swatch colors for the visible avatar stack (left → right). */
presenceColors?: string[];
/** Additional editors not shown as swatches — renders as `+N` on the stack. */
extraCount?: number;
collaborators?: [Collaborator, Collaborator];
/** Optional background image URL. Falls back to a dark canvas gradient. */
backgroundUrl?: string;
className?: string;
}
const defaultCollaborators: [Collaborator, Collaborator] = [
{
name: "Dylan",
pill: "bg-[#A259FF]",
pillText: "text-white",
cursor: "text-[#A259FF]",
},
{
name: "Evan",
pill: "bg-[#FF7262]",
pillText: "text-white",
cursor: "text-[#FF7262]",
},
];
const defaultPresenceColors = ["#A259FF", "#FF7262", "#1ABCFE", "#0ACF83"];
function PresenceStack({
colors,
extraCount,
className,
}: {
colors: string[];
extraCount: number;
className?: string;
}) {
const overlap = "-ml-[1.08cqi]";
return (
<ul className={cn("m-0 flex list-none items-center p-0", className)} aria-hidden="true">
{colors.map((color, index) => (
<li
key={`${color}-${index}`}
className={cn("relative size-[3.25cqi] shrink-0", index > 0 && overlap)}
style={{ zIndex: index + 1 }}
>
<span
className="block size-full rounded-full ring-2 ring-[#0e0e12] shadow-[inset_0_1px_0_rgba(255,255,255,0.2)]"
style={{ backgroundColor: color }}
/>
</li>
))}
{extraCount > 0 ? (
<li
className={cn("relative size-[3.25cqi] shrink-0", overlap)}
style={{ zIndex: colors.length + 1 }}
>
<span
className={cn(
"flex size-full items-center justify-center rounded-full ring-2 ring-[#0e0e12]",
"bg-[oklch(0.26_0.012_285)] shadow-[inset_0_1px_0_rgba(255,255,255,0.14)]",
"font-(family-name:--font-mono) text-[1.65cqi] font-medium leading-none tabular-nums tracking-tight text-white/88",
)}
>
+{extraCount}
</span>
</li>
) : null}
</ul>
);
}
function Cursor({ className }: { className?: string }) {
return (
<svg
viewBox="0 0 24 24"
aria-hidden="true"
className={cn("h-[6.5cqi] w-[6.5cqi] drop-shadow-[0_2px_4px_rgba(0,0,0,0.28)]", className)}
>
<path
d="M4 3.2 L4 19.4 L8.6 15.2 L11.4 21.2 L14 20 L11.2 14 L17.2 13.6 Z"
fill="currentColor"
stroke="white"
strokeWidth="1.4"
strokeLinejoin="round"
/>
</svg>
);
}
function ClickBurst({ className }: { className?: string }) {
return (
<span
data-burst=""
aria-hidden="true"
className={cn(
"pointer-events-none absolute inline-block h-[3cqi] w-[3cqi]",
"before:absolute before:inset-[35%] before:rounded-full before:bg-current",
"after:absolute after:inset-0 after:rounded-full",
"after:bg-[conic-gradient(from_0deg,transparent_0_8%,currentColor_8%_12%,transparent_12%_33%,currentColor_33%_37%,transparent_37%_58%,currentColor_58%_62%,transparent_62%_83%,currentColor_83%_87%,transparent_87%)]",
"after:mask-[radial-gradient(circle,transparent_38%,black_40%,black_60%,transparent_62%)]",
className,
)}
/>
);
}
export default function CollabCard({
greeting = "hello!",
eyebrow = "Now in multiplayer",
intro = "editing",
conjunction = "&",
trailing = "",
liveLabel = "Live · 4 editing",
presenceColors = defaultPresenceColors,
extraCount = 2,
collaborators = defaultCollaborators,
backgroundUrl,
className,
}: CollabCardProps) {
const [first, second] = collaborators;
return (
<div
className={cn(
"group/collab relative isolate aspect-3/2 w-full overflow-hidden rounded-2xl",
"bg-[#111114] text-white shadow-xl ring-1 ring-white/10",
"@container",
className,
)}
style={
backgroundUrl
? {
backgroundImage: `url(${backgroundUrl})`,
backgroundSize: "cover",
backgroundPosition: "center",
}
: undefined
}
>
{!backgroundUrl && (
<div
aria-hidden="true"
className="absolute inset-0 -z-10 bg-[linear-gradient(165deg,#18181f_0%,#0c0c10_55%,#09090c_100%)]"
/>
)}
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 -z-10 bg-[radial-gradient(ellipse_70%_55%_at_18%_88%,color-mix(in_oklch,#A259FF_42%,transparent)_0%,transparent_70%),radial-gradient(ellipse_60%_50%_at_88%_22%,color-mix(in_oklch,#FF7262_32%,transparent)_0%,transparent_68%)]"
/>
<div
aria-hidden="true"
className="pointer-events-none absolute inset-0 -z-10 opacity-[0.16] bg-[radial-gradient(rgba(255,255,255,0.32)_1px,transparent_1.2px)] [background-size:14px_14px] [mask-image:radial-gradient(ellipse_at_center,black_40%,transparent_88%)]"
/>
<header className="absolute inset-x-[5cqi] top-[4cqi] z-10 flex items-center justify-between gap-[2cqi]">
<span className="flex min-w-0 items-center gap-[1.4cqi] text-[2.4cqi] font-medium leading-none tracking-tight text-white/75">
<span className="relative inline-flex h-[1.7cqi] w-[1.7cqi] shrink-0">
<span className="collab-live-ping absolute inset-0 rounded-full bg-emerald-400/70" />
<span className="relative inline-block h-full w-full rounded-full bg-emerald-400 shadow-[0_0_6px_rgba(52,211,153,0.75)]" />
</span>
<span className="truncate tabular-nums leading-snug">{liveLabel}</span>
</span>
<PresenceStack colors={presenceColors} extraCount={extraCount} />
</header>
<div className="relative flex h-full w-full flex-col items-center justify-center gap-[3.2cqi] px-[5.5cqi] pb-[5cqi] pt-[9cqi]">
<p className="max-w-[88%] text-center text-[2.75cqi] font-medium leading-snug tracking-tight text-[#0D99FF]">
{eyebrow}
</p>
<div className="relative w-[80%] max-w-full">
<div className="relative grid place-items-center rounded-[1.8cqi] border-2 border-dashed border-[#0D99FF]/75 px-[5.5cqi] py-[4.2cqi]">
{[
"-left-[0.9cqi] -top-[0.9cqi]",
"-right-[0.9cqi] -top-[0.9cqi]",
"-left-[0.9cqi] -bottom-[0.9cqi]",
"-right-[0.9cqi] -bottom-[0.9cqi]",
].map((pos) => (
<span
key={pos}
aria-hidden="true"
className={cn(
"absolute h-[1.7cqi] w-[1.7cqi] rounded-[0.25cqi] bg-[#111114] ring-[1.5px] ring-[#0D99FF] shadow-[0_2px_4px_rgba(0,0,0,0.35)]",
pos,
)}
/>
))}
<h2 className="font-(family-name:--font-display) text-[17.5cqi] font-medium leading-[0.92] tracking-[-0.035em] text-white">
{greeting}
</h2>
</div>
<span
aria-hidden="true"
className="collab-cursor collab-cursor--host pointer-events-none absolute left-[-2.8cqi] top-[-3.6cqi] text-white"
>
<Cursor />
</span>
</div>
<p className="flex max-w-full flex-wrap items-baseline justify-center gap-x-[1.5cqi] gap-y-[1.2cqi] text-[3.85cqi] font-medium leading-none tracking-tight text-white/95">
<span className="text-white/80">{intro}</span>
<span className="relative inline-flex items-center">
<span
className={cn(
"inline-flex items-center rounded-full px-[2.8cqi] py-[0.55cqi] text-[3.5cqi] font-semibold leading-none",
first.pill,
first.pillText ?? "text-white",
)}
>
{first.name}
</span>
<span
aria-hidden="true"
className={cn(
"collab-cursor collab-cursor--first pointer-events-none absolute bottom-[-2.9cqi] right-[-1.8cqi]",
first.cursor,
)}
>
<Cursor className="-scale-x-100" />
<ClickBurst className="right-[-0.7cqi] top-[-0.7cqi]" />
</span>
</span>
<span className="text-white/55">{conjunction}</span>
<span className="relative inline-flex items-center">
<span
className={cn(
"inline-flex items-center rounded-full px-[2.8cqi] py-[0.55cqi] text-[3.5cqi] font-semibold leading-none",
second.pill,
second.pillText ?? "text-white",
)}
>
{second.name}
</span>
<span
aria-hidden="true"
className={cn(
"collab-cursor collab-cursor--second pointer-events-none absolute right-[-2.8cqi] top-[-3.2cqi]",
second.cursor,
)}
>
<Cursor />
<ClickBurst className="bottom-[-0.7cqi] left-[-0.7cqi]" />
</span>
</span>
{trailing ? <span className="text-white/80">{trailing}</span> : null}
</p>
</div>
</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);
}Controles · HTML · CSS · JS
Edita el código y ajústalo con los controles. La vista previa se actualiza mientras escribes.

Este componente se ejecuta desde un paquete compilado, así que su script es de solo lectura aquí. Edita el HTML y el CSS; el código completo está en la pestaña Código.
Edita cada componente en directo, ajústalo con controles, descarga el código completo y copia los prompts avanzados.
49 $ pago únicoPrecio provisional
Modo de prueba: no se cobra nada real.
Gratis: vista previa, botones de copiar y notas de la lección.
Dos cursores con nombre con etiquetas de colores y una pila de avatares de presencia muestran a personas trabajando juntas en vivo, como una herramienta de diseño.
Funciones de colaboración, herramientas de equipo y páginas de productos multijugador.
Pase greeting, intro, liveLabel, presenceColors (#A259FF, #FF7262, #1ABCFE, #0ACF83), extraCount, collaborators y backgroundUrl.
Añade el componente "Tarjeta de colaboración en vivo" de Animata (github.com/codse/animata) (MIT) a mi aplicación React + Tailwind CSS. Archivo fuente: https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/card/collab-card.tsx. Dos cursores con nombre con etiquetas de colores y una pila de avatares de presencia muestran a personas trabajando juntas en vivo, como una herramienta de diseño. Úsalo para: Funciones de colaboración, herramientas de equipo y páginas de productos multijugador. Ajustes que se pueden cambiar: Pase greeting, intro, liveLabel, presenceColors (#A259FF, #FF7262, #1ABCFE, #0ACF83), extraCount, collaborators y backgroundUrl. Admite temas claro y oscuro y respeta prefers-reduced-motion. Conserva el aviso de licencia MIT.
Un prompt más largo con pasos de ajuste, accesibilidad e integración.