Prestasi
Perlu perhatianKadar bingkai: purata 60 fps, p5 59.9 · Tugas panjang: 0 tugas, jumlah 0 ms, terpanjang 0 ms · Sumber gzip 12 KB · Masa jalan 209 KB
Category SkeletonMITPemuatAnimata
Komponen React Pemuat oleh Animata. Dikumpul tanpa ubahan daripada Animata di bawah lesen MIT dan dipaparkan secara langsung di sini.
Laporan kualiti
Gred dan skor datang daripada pemeriksaan automatik semasa binaan atau ujian. Jika suatu pemeriksaan tidak dijalankan, ia ditanda Belum diuji — nombor tidak pernah direka.
Kadar bingkai: purata 60 fps, p5 59.9 · Tugas panjang: 0 tugas, jumlah 0 ms, terpanjang 0 ms · Sumber gzip 12 KB · Masa jalan 209 KB
Isu 0 · Pembaca skrin: Perlu perhatian
Tiada gerakan berterusan
Tidak melimpah
Angka kadar bingkai dan tugas panjang diukur dalam Chromium tanpa paparan dengan WebGL perisian. Ia hanya boleh dibandingkan antara komponen di laman ini, dan tidak mewakili peranti sebenar.
Tidak berkenaan: tiada animasi yang kelihatan ketika rehat. Animasi yang dicetuskan oleh tuding tidak diuji.
Tiada pelanggaran axe-core.

Disemak 15 Nov 2026 · Angka datang daripada skrip automatik, bukan sampel tulisan tangan.
Dipaparkan pada saiz sebenar.
Salinan bermula dengan notis lesen. Kekalkannya apabila anda menggunakan kod.
<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-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-duration:initial;--tw-ease:initial;--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--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-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);--spacing:.25rem;--radius-2xl:1rem;--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));--ease-apple:cubic-bezier(.4, 0, .6, 1);--animate-cg-ping:cg-ping 1.4s cubic-bezier(.22, 1, .36, 1) infinite;--animate-cg-bounce:cg-bounce 1s ease-in-out infinite;--animate-cg-shimmer:cg-shimmer 1.2s ease-in-out infinite;--animate-cg-twinkle:cg-twinkle .9s ease-in-out infinite}}@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}}@layer utilities{@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}}.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}}.w-80{width:calc(var(--spacing) * 80)}.w-fit{width:fit-content}.w-full{width:100%}.transform{transform:var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, )}.overflow-visible{overflow:visible}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.text-foreground{color:var(--color-foreground)}.opacity-0{opacity:0}.\[--cg-darkest\:\#76756f\]{--cg-darkest:#76756f}.\[--cg-faint\:var\(--ink-faint\,var\(--cg-lightest\)\)\]{--cg-faint:var(--ink-faint,var(--cg-lightest))}.\[--cg-ink\:var\(--ink\,var\(--cg-darkest\)\)\]{--cg-ink:var(--ink,var(--cg-darkest))}.\[--cg-lightest\:\#e3e3e3\]{--cg-lightest:#e3e3e3}.\[--cg-soft\:color-mix\(in_oklab\,var\(--cg-ink\)_50\%\,transparent\)\]{--cg-soft:var(--cg-ink)}@supports (color:color-mix(in lab, red, red)){.\[--cg-soft\:color-mix\(in_oklab\,var\(--cg-ink\)_50\%\,transparent\)\]{--cg-soft:color-mix(in oklab,var(--cg-ink) 50%,transparent)}}@media (prefers-reduced-motion:no-preference){.motion-safe\:transition-\[scale\,transform\]{transition-property:scale,transform;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.motion-safe\:duration-300{--tw-duration:.3s;transition-duration:.3s}.motion-safe\:ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media (hover:hover){:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-x-0\.5){--tw-translate-x:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-x-3\.5){--tw-translate-x:calc(var(--spacing) * -3.5);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-x-\[1\.5px\]){--tw-translate-x:calc(1.5px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-x-\[1\.8px\]){--tw-translate-x:calc(1.8px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-x-\[2\.5px\]){--tw-translate-x:calc(2.5px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-x-\[3px\]){--tw-translate-x:calc(3px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:translate-x-0\.5){--tw-translate-x:calc(var(--spacing) * .5);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:translate-x-3\.5){--tw-translate-x:calc(var(--spacing) * 3.5);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:translate-x-\[1\.5px\]){--tw-translate-x:1.5px;translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:translate-x-\[1\.8px\]){--tw-translate-x:1.8px;translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:translate-x-\[2\.5px\]){--tw-translate-x:2.5px;translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:translate-x-\[3px\]){--tw-translate-x:3px;translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-y-0\.5){--tw-translate-y:calc(var(--spacing) * -.5);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-y-3\.5){--tw-translate-y:calc(var(--spacing) * -3.5);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-y-\[1\.5px\]){--tw-translate-y:calc(1.5px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-y-\[1\.8px\]){--tw-translate-y:calc(1.8px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-y-\[2\.5px\]){--tw-translate-y:calc(2.5px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:-translate-y-\[3px\]){--tw-translate-y:calc(3px * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:translate-y-\[1\.5px\]){--tw-translate-y:1.5px;translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:translate-y-\[13px\]){--tw-translate-y:13px;translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:translate-y-px){--tw-translate-y:1px;translate:var(--tw-translate-x) var(--tw-translate-y)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:scale-\[0\.82\]){scale:.82}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:scale-\[0\.92\]){scale:.92}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:scale-\[1\.04\]){scale:1.04}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:scale-\[1\.4\]){scale:1.4}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:scale-\[1\.05\]){scale:1.05}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:scale-\[1\.06\]){scale:1.06}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:scale-\[1\.08\]){scale:1.08}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:scale-\[1\.15\]){scale:1.15}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:scale-\[1\.22\]){scale:1.22}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:rotate-0){rotate:0deg}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:rotate-45){rotate:45deg}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:rotate-90){rotate:90deg}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:animate-cg-bounce){animation:var(--animate-cg-bounce)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:animate-cg-ping){animation:var(--animate-cg-ping)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:animate-cg-shimmer){animation:var(--animate-cg-shimmer)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:animate-cg-twinkle){animation:var(--animate-cg-twinkle)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:fill-\[var\(--cg-ink\)\]){fill:var(--cg-ink)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:fill-\[var\(--cg-soft\)\]){fill:var(--cg-soft)}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:opacity-0){opacity:0}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:opacity-45){opacity:.45}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:opacity-100){opacity:1}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:delay-100){transition-delay:.1s}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:delay-\[60ms\]){transition-delay:60ms}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:delay-100){--tw-animation-delay:.1s;animation-delay:.1s}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:delay-\[60ms\]){--tw-animation-delay:60ms;animation-delay:60ms}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:\[animation-delay\:0\.1s\]){animation-delay:.1s}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:\[animation-delay\:0\.2s\]){animation-delay:.2s}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:\[animation-delay\:0\.3s\]){animation-delay:.3s}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:\[animation-delay\:0\.4s\]){animation-delay:.4s}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:\[animation-delay\:0\.5s\]){animation-delay:.5s}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:\[animation-delay\:0\.15s\]){animation-delay:.15s}:is(:where(.group\/cg):hover .motion-safe\:group-hover\/cg\:\[stroke-dasharray\:105_113\]){stroke-dasharray:105 113}}}.dark\:\[--cg-faint\:var\(--ink-faint\,var\(--cg-darkest\)\)\]:where(.dark,.dark *){--cg-faint:var(--ink-faint,var(--cg-darkest))}.dark\:\[--cg-ink\:var\(--ink\,var\(--cg-lightest\)\)\]:where(.dark,.dark *){--cg-ink:var(--ink,var(--cg-lightest))}@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)}.cg-motion{transform-box:fill-box;transform-origin:50%}@media (prefers-reduced-motion:no-preference){.cg-motion{transition:translate .5s cubic-bezier(.22,1,.36,1),scale .5s cubic-bezier(.22,1,.36,1),scale-x .5s cubic-bezier(.22,1,.36,1),scale-y .5s cubic-bezier(.22,1,.36,1),rotate .5s cubic-bezier(.22,1,.36,1),transform .5s cubic-bezier(.22,1,.36,1),fill .5s,opacity .5s}}@media (prefers-reduced-motion:reduce){.cg-motion{transition:none}}.cg-motion-frame{transform-box:fill-box;transform-origin:50%}@media (prefers-reduced-motion:no-preference){.cg-progress-arc{transition:stroke-dasharray .7s cubic-bezier(.22,1,.36,1)}}@media (prefers-reduced-motion:reduce){.cg-progress-arc{transition:none}}.cg-feature-tilt{transform-box:fill-box;transform-origin:50%;rotate:-8deg}@media (prefers-reduced-motion:no-preference){.cg-feature-tilt{transition:rotate .5s cubic-bezier(.22,1,.36,1)}}@media (prefers-reduced-motion:reduce){.cg-feature-tilt{transition:none}}@media (prefers-reduced-motion:no-preference){.cg-text-line{transform-origin:0}.group\/cg:hover .cg-text-line-1{transform:scaleX(1.25)}.group\/cg:hover .cg-text-line-2{transition-delay:60ms;transform:scaleX(1.5)}.group\/cg:hover .cg-text-line-3{transition-delay:.12s;transform:scaleX(1.8)}.cg-list-bar{transform-origin:0}.group\/cg:hover .cg-list-grow{transform:scaleX(1.3)}.group\/cg:hover .cg-list-shrink{transform:scaleX(.7)}.cg-graph-bar{transform-origin:bottom}.group\/cg:hover .cg-graph-bar{transform:scaleY(1.18)}.group\/cg:hover .cg-graph-bar-2{transition-delay:50ms}.group\/cg:hover .cg-graph-bar-3{transition-delay:.1s}.group\/cg:hover .cg-graph-bar-4{transition-delay:.15s}.cg-widget-hour{transform-origin:bottom}.cg-widget-minute{transform-origin:0 0}.group\/cg:hover .cg-widget-hour{transform:rotate(30deg)}.group\/cg:hover .cg-widget-minute{transform:rotate(60deg)}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@keyframes cg-ping{0%,to{transform:scale(1)}50%{transform:scale(1.12)}}@keyframes cg-bounce{0%,to{transform:translateY(0)}50%{transform:translateY(2.5px)}}@keyframes cg-shimmer{0%,to{opacity:.45}50%{opacity:1}}@keyframes cg-twinkle{0%,to{transform:scale(1)rotate(0)}50%{transform:scale(1.25)rotate(20deg)}}// animata source (MIT). npm i clsx react tailwind-merge · Tailwind CSS v4
// ── animata/skeleton/category-glyphs.css (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/skeleton/category-glyphs.css)
@reference "../../styles/globals.css";
/** Category glyph SVG — shared motion base (pair with group/cg + group-hover/cg:* on parts). */
.cg-motion {
transform-box: fill-box;
transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
/* TW v4 utilities use individual transform properties — transition each one */
.cg-motion {
transition:
translate 0.5s cubic-bezier(0.22, 1, 0.36, 1),
scale 0.5s cubic-bezier(0.22, 1, 0.36, 1),
scale-x 0.5s cubic-bezier(0.22, 1, 0.36, 1),
scale-y 0.5s cubic-bezier(0.22, 1, 0.36, 1),
rotate 0.5s cubic-bezier(0.22, 1, 0.36, 1),
transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
fill 0.5s ease,
opacity 0.5s ease;
}
}
@media (prefers-reduced-motion: reduce) {
.cg-motion {
transition: none;
}
}
/** Keyframe-driven glyph parts — no transform transition (avoids fighting animation). */
.cg-motion-frame {
transform-box: fill-box;
transform-origin: center;
}
/** Progress ring arc — stroke only; never add transform-box (conflicts with SVG rotate). */
@media (prefers-reduced-motion: no-preference) {
.cg-progress-arc {
transition: stroke-dasharray 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
}
@media (prefers-reduced-motion: reduce) {
.cg-progress-arc {
transition: none;
}
}
/** Feature-card glyph — resting tilt, straightens on group-hover/cg. */
.cg-feature-tilt {
transform-box: fill-box;
transform-origin: center;
rotate: -8deg;
}
@media (prefers-reduced-motion: no-preference) {
.cg-feature-tilt {
transition: rotate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
}
@media (prefers-reduced-motion: reduce) {
.cg-feature-tilt {
transition: none;
}
}
/**
* SVG scale-x / scale-y exceptions — TW v4 longhands fail on stroke paths and
* bottom-anchored rects; unified transform here. animate-cg-* tokens + keyframes
* live in globals.css (@theme inline in this file does not emit TW utilities).
*/
@media (prefers-reduced-motion: no-preference) {
.cg-text-line {
transform-origin: left center;
}
.group\/cg:hover .cg-text-line-1 {
transform: scaleX(1.25);
}
.group\/cg:hover .cg-text-line-2 {
transform: scaleX(1.5);
transition-delay: 60ms;
}
.group\/cg:hover .cg-text-line-3 {
transform: scaleX(1.8);
transition-delay: 120ms;
}
.cg-list-bar {
transform-origin: left center;
}
.group\/cg:hover .cg-list-grow {
transform: scaleX(1.3);
}
.group\/cg:hover .cg-list-shrink {
transform: scaleX(0.7);
}
.cg-graph-bar {
transform-origin: center bottom;
}
.group\/cg:hover .cg-graph-bar {
transform: scaleY(1.18);
}
.group\/cg:hover .cg-graph-bar-2 {
transition-delay: 50ms;
}
.group\/cg:hover .cg-graph-bar-3 {
transition-delay: 100ms;
}
.group\/cg:hover .cg-graph-bar-4 {
transition-delay: 150ms;
}
.cg-widget-hour {
transform-origin: center bottom;
}
.cg-widget-minute {
transform-origin: 0% 0%;
}
.group\/cg:hover .cg-widget-hour {
transform: rotate(30deg);
}
.group\/cg:hover .cg-widget-minute {
transform: rotate(60deg);
}
}
// ── animata/skeleton/category-glyphs.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/skeleton/category-glyphs.tsx)
/**
* Category tile glyphs — 64×64 viewBox, visually centered on (32, 32).
* Stroke-first, Apple-style pictograms. Each glyph is a literal symbol of the
* category so users can recognize it at a glance.
*
* Shading uses three tokens on the parent SVG (--cg-ink / --cg-soft / --cg-faint).
* Hover micro-interactions: default is Tailwind `group-hover/cg:*` on each part
* (ancestor must be `group/cg`). Four glyphs use CSS scale/rotate exceptions in
* category-glyphs.css; keyframe tokens live in styles/globals.css @theme.
*/
import type { ReactNode } from "react";
import { cn } from "@/lib/utils";
import "./category-glyphs.css";
const INK = "var(--cg-ink)";
const SOFT = "var(--cg-soft)";
const FAINT = "var(--cg-faint)";
const CAP = "round" as const;
const JOIN = "round" as const;
/** Horizontally centered rounded bar. */
function Bar({
cx,
y,
w,
h = 3.5,
r,
fill = INK,
o,
className,
}: {
cx: number;
y: number;
w: number;
h?: number;
r?: number;
fill?: string;
o?: number;
className?: string;
}) {
return (
<rect
x={cx - w / 2}
y={y}
width={w}
height={h}
rx={r ?? h / 2}
fill={fill}
opacity={o}
className={className}
/>
);
}
const GLYPHS: Record<string, ReactNode> = {
/** Animated type — capital "A" with a motion trail */
text: (
<>
<path
d="M15 44 L23 18 L31 44"
fill="none"
stroke={INK}
strokeWidth="2.2"
strokeLinecap={CAP}
strokeLinejoin={JOIN}
/>
<path d="M18 36 H28" stroke={INK} strokeWidth="2.2" strokeLinecap={CAP} />
<path
d="M37 22 H49"
stroke={SOFT}
strokeWidth="2.2"
strokeLinecap={CAP}
className={cn("cg-motion", "cg-text-line", "cg-text-line-1")}
/>
<path
d="M37 30 H46"
stroke={SOFT}
strokeWidth="2.2"
strokeLinecap={CAP}
className={cn("cg-motion", "cg-text-line", "cg-text-line-2")}
/>
<path
d="M37 38 H43"
stroke={FAINT}
strokeWidth="2.2"
strokeLinecap={CAP}
className={cn("cg-motion", "cg-text-line", "cg-text-line-3")}
/>
</>
),
/** Ambient field — symmetric waves + floating particles */
background: (
<>
{[
[22, SOFT],
[32, INK],
[42, SOFT],
].map(([y, stroke], i) => (
<path
key={y}
d={`M10 ${y} Q21 ${Number(y) - 8} 32 ${y} T54 ${y}`}
fill="none"
stroke={String(stroke)}
strokeWidth="2.2"
strokeLinecap={CAP}
className={cn(
"cg-motion",
i === 1
? "motion-safe:group-hover/cg:-translate-x-[3px]"
: "motion-safe:group-hover/cg:translate-x-[3px]",
)}
/>
))}
{[
[20, 16],
[44, 16],
[20, 48],
[44, 48],
].map(([cx, cy]) => (
<circle
key={`${cx}-${cy}`}
cx={cx}
cy={cy}
r="1.5"
fill={SOFT}
className={cn(
"cg-motion",
"motion-safe:group-hover/cg:scale-[1.4] motion-safe:group-hover/cg:fill-[var(--cg-ink)]",
)}
/>
))}
</>
),
/** Photo — frame, sun, mountains */
image: (
<>
<rect
x="14"
y="16"
width="36"
height="32"
rx="4"
fill="none"
stroke={INK}
strokeWidth="2.2"
/>
<circle
cx="24.5"
cy="26"
r="3.5"
fill={INK}
className={cn(
"cg-motion",
"motion-safe:group-hover/cg:-translate-y-[2.5px] motion-safe:group-hover/cg:scale-[1.15]",
)}
/>
<path
d="M14 42 L24 31 L31 38 L41 27 L50 36 V48 H14 Z"
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:translate-y-px")}
/>
</>
),
/** Avatar rows */
list: (
<>
{[
[17, 24, INK],
[27, 18, SOFT],
[37, 24, SOFT],
[47, 18, FAINT],
].map(([y, w, shade], i) => (
<g key={y}>
<circle
cx="18"
cy={Number(y)}
r="3.5"
fill="none"
stroke={String(shade)}
strokeWidth="1.6"
/>
<rect
x="26"
y={Number(y) - 1.75}
width={Number(w)}
height="3.5"
rx="1.75"
fill={String(shade)}
className={cn("cg-motion", "cg-list-bar", i < 2 ? "cg-list-grow" : "cg-list-shrink")}
/>
</g>
))}
</>
),
/** Wrapper frame clipping a marquee of content blocks */
container: (
<>
<defs>
<clipPath id="cg-container-clip">
{/* concentric with the frame: inner rx = outer rx − inset */}
<rect x="12" y="20" width="40" height="24" rx="2" />
</clipPath>
</defs>
<rect
x="10"
y="18"
width="44"
height="28"
rx="4"
fill="none"
stroke={INK}
strokeWidth="2.2"
/>
<g
clipPath="url(#cg-container-clip)"
className={cn("cg-motion", "motion-safe:group-hover/cg:-translate-x-3.5")}
>
{[
[14, SOFT],
[28, INK],
[42, SOFT],
[56, INK],
].map(([x, shade]) => (
<rect key={x} x={Number(x)} y="25" width="10" height="14" rx="2.5" fill={String(shade)} />
))}
</g>
</>
),
/** FAQ — closed, open (focal, with content), closed */
accordion: (
<>
<rect x="12" y="12" width="40" height="8" rx="2" fill={FAINT} />
<Bar cx={25} y={14.5} w={18} h={3} fill={SOFT} />
<path
d="M45 16 H49 M47 14 V18"
stroke={SOFT}
strokeWidth="1.6"
strokeLinecap={CAP}
className={cn("cg-motion", "motion-safe:group-hover/cg:rotate-90")}
/>
<rect x="12" y="22" width="40" height="20" rx="2" fill={FAINT} />
<Bar cx={26} y={25.5} w={20} h={3} />
<path d="M45 27 H49" stroke={INK} strokeWidth="1.6" strokeLinecap={CAP} />
<Bar
cx={30}
y={32.5}
w={28}
h={2.5}
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:fill-[var(--cg-ink)]")}
/>
<Bar
cx={28}
y={37.5}
w={24}
h={2.5}
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:fill-[var(--cg-ink)]")}
/>
<rect x="12" y="44" width="40" height="8" rx="2" fill={FAINT} />
<Bar cx={25} y={46.5} w={18} h={3} fill={SOFT} />
<path
d="M45 48 H49 M47 46 V50"
stroke={SOFT}
strokeWidth="1.6"
strokeLinecap={CAP}
className={cn("cg-motion", "motion-safe:group-hover/cg:rotate-90")}
/>
</>
),
/** Fanned stack of cards */
card: (
<>
<rect
x="20"
y="16"
width="32"
height="24"
rx="4"
fill={FAINT}
className={cn(
"cg-motion",
"motion-safe:group-hover/cg:translate-x-[3px] motion-safe:group-hover/cg:-translate-y-[3px]",
)}
/>
<rect
x="16"
y="20"
width="32"
height="24"
rx="4"
fill={SOFT}
className={cn(
"cg-motion",
"motion-safe:group-hover/cg:translate-x-[1.5px] motion-safe:group-hover/cg:-translate-y-[1.5px]",
)}
/>
<rect
x="12"
y="24"
width="32"
height="24"
rx="4"
fill="none"
stroke={INK}
strokeWidth="2.2"
/>
<Bar cx={28} y={31} w={20} h={3} />
<Bar cx={28} y={37} w={14} h={2.5} fill={SOFT} />
</>
),
/** Segmented control + panel */
tabs: (
<>
<rect x="10" y="14" width="44" height="12" rx="6" fill={FAINT} />
<rect
x="12"
y="16"
width="12"
height="8"
rx="4"
fill={INK}
className={cn("cg-motion", "motion-safe:group-hover/cg:translate-x-3.5")}
/>
<Bar
cx={18}
y={18.75}
w={8}
h={2.5}
fill={SOFT}
o={0}
className={cn(
"cg-motion",
"opacity-0 motion-safe:group-hover/cg:opacity-100 motion-safe:group-hover/cg:delay-100",
)}
/>
<Bar
cx={32}
y={18.75}
w={8}
h={2.5}
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:opacity-0")}
/>
<Bar cx={46} y={18.75} w={8} h={2.5} fill={SOFT} />
<rect x="10" y="31" width="44" height="19" rx="4" fill={FAINT} />
<Bar cx={32} y={37} w={28} h={3} fill={SOFT} />
<Bar cx={32} y={43} w={20} h={2.5} fill={SOFT} />
</>
),
/** Pricing — three tiers, featured center */
section: (
<>
<Bar cx={32} y={12} w={32} h={4} />
<rect x="10" y="24" width="12" height="24" rx="2" fill={FAINT} />
<Bar cx={16} y={28} w={7} h={2.5} fill={SOFT} />
<rect x="12.5" y="34" width="7" height="7" rx="1" fill={SOFT} />
<g className={cn("cg-motion", "motion-safe:group-hover/cg:-translate-y-0.5")}>
<rect x="26" y="18" width="12" height="34" rx="2" fill={SOFT} />
<Bar cx={32} y={22.5} w={8} h={2.5} />
<rect x="28.5" y="29" width="7" height="9" rx="1" fill={INK} />
<rect x="28.5" y="44" width="7" height="4" rx="2" fill={INK} />
</g>
<rect x="42" y="24" width="12" height="24" rx="2" fill={FAINT} />
<Bar cx={48} y={28} w={7} h={2.5} fill={SOFT} />
<rect x="44.5" y="34" width="7" height="7" rx="1" fill={SOFT} />
</>
),
/** Touch ripple — concentric rings */
icon: (
<>
<circle
cx="32"
cy="32"
r="18"
fill="none"
stroke={FAINT}
strokeWidth="1.6"
className={cn(
"cg-motion-frame",
"motion-safe:group-hover/cg:animate-cg-ping",
"motion-safe:group-hover/cg:[animation-delay:0.3s]",
)}
/>
<circle
cx="32"
cy="32"
r="12"
fill="none"
stroke={SOFT}
strokeWidth="2"
className={cn(
"cg-motion-frame",
"motion-safe:group-hover/cg:animate-cg-ping",
"motion-safe:group-hover/cg:[animation-delay:0.15s]",
)}
/>
<circle
cx="32"
cy="32"
r="6"
fill="none"
stroke={INK}
strokeWidth="2.2"
className={cn("cg-motion-frame", "motion-safe:group-hover/cg:animate-cg-ping")}
/>
<circle cx="32" cy="32" r="2.5" fill={INK} />
</>
),
/** Split reveal — panels parting outward */
preloader: (
<>
<rect
x="10"
y="14"
width="21"
height="36"
rx="2"
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:-translate-x-[3px]")}
/>
<rect
x="33"
y="14"
width="21"
height="36"
rx="2"
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:translate-x-[3px]")}
/>
<path d="M32 14 V50" stroke={INK} strokeWidth="2.2" strokeLinecap={CAP} />
<path
d="M25 28 L21 32 L25 36"
fill="none"
stroke={INK}
strokeWidth="2"
strokeLinecap={CAP}
strokeLinejoin={JOIN}
className={cn("cg-motion", "motion-safe:group-hover/cg:-translate-x-[3px]")}
/>
<path
d="M39 28 L43 32 L39 36"
fill="none"
stroke={INK}
strokeWidth="2"
strokeLinecap={CAP}
strokeLinejoin={JOIN}
className={cn("cg-motion", "motion-safe:group-hover/cg:translate-x-[3px]")}
/>
</>
),
/** Ring progress at ~70% */
progress: (
<>
<circle cx="32" cy="32" r="18" fill="none" stroke={FAINT} strokeWidth="3.5" />
<circle
cx="32"
cy="32"
r="18"
fill="none"
stroke={INK}
strokeWidth="3.5"
strokeLinecap={CAP}
strokeDasharray="79 113"
transform="rotate(-90 32 32)"
className="cg-progress-arc motion-safe:group-hover/cg:[stroke-dasharray:105_113]"
/>
<Bar cx={32} y={30.25} w={14} h={3.5} fill={SOFT} />
</>
),
/** Ascending bar chart */
graphs: (
<>
{[
[15, 10, SOFT],
[24, 16, SOFT],
[33, 22, INK],
[42, 28, INK],
].map(([x, h, shade], i) => (
<rect
key={x}
x={Number(x)}
y={47 - Number(h)}
width="7"
height={Number(h)}
rx="2"
fill={String(shade)}
className={cn("cg-motion", "cg-graph-bar", `cg-graph-bar-${i + 1}`)}
/>
))}
<rect x="12" y="47" width="40" height="2" rx="1" fill={FAINT} />
</>
),
/** Modal floating above dimmed page content */
overlay: (
<>
<Bar
cx={32}
y={9}
w={40}
h={3.5}
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:opacity-45")}
/>
<Bar
cx={32}
y={26}
w={48}
h={3.5}
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:opacity-45")}
/>
<Bar
cx={32}
y={36}
w={48}
h={3.5}
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:opacity-45")}
/>
<Bar
cx={32}
y={51.5}
w={40}
h={3.5}
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:opacity-45")}
/>
<g className={cn("cg-motion", "motion-safe:group-hover/cg:scale-[1.05]")}>
<rect
x="17"
y="19"
width="30"
height="26"
rx="4"
fill={FAINT}
stroke={INK}
strokeWidth="2.2"
/>
<path
d="M41.5 22.5 L44.5 25.5 M44.5 22.5 L41.5 25.5"
stroke={SOFT}
strokeWidth="1.6"
strokeLinecap={CAP}
/>
<Bar cx={32} y={26} w={16} h={3} />
<Bar cx={32} y={31.5} w={20} h={2.5} fill={SOFT} />
<rect x="25" y="37" width="14" height="5" rx="2.5" fill={INK} />
</g>
</>
),
/** CTA pill with a click cursor */
button: (
<>
<g className={cn("cg-motion", "motion-safe:group-hover/cg:scale-[1.06]")}>
<rect x="12" y="18" width="40" height="16" rx="8" fill={INK} />
<rect x="20" y="24.25" width="24" height="3.5" rx="1.75" fill={FAINT} />
</g>
<path
d="M42 30 L42 46 L46.5 41.5 L49 48 L52 46.8 L49.5 40.5 L55 40 Z"
fill={INK}
stroke={FAINT}
strokeWidth="1"
strokeLinejoin={JOIN}
className={cn(
"cg-motion",
"motion-safe:group-hover/cg:-translate-x-[3px] motion-safe:group-hover/cg:-translate-y-[3px] motion-safe:group-hover/cg:scale-[0.92]",
)}
/>
</>
),
/** Clock widget tile */
widget: (
<>
<rect
x="14"
y="14"
width="36"
height="36"
rx="8"
fill="none"
stroke={INK}
strokeWidth="2.2"
/>
<circle cx="32" cy="32" r="11" fill="none" stroke={SOFT} strokeWidth="2" />
<path
d="M32 32 V24"
stroke={INK}
strokeWidth="2.2"
strokeLinecap={CAP}
className={cn("cg-motion", "cg-widget-hour")}
/>
<path
d="M32 32 L37 35"
stroke={SOFT}
strokeWidth="2"
strokeLinecap={CAP}
className={cn("cg-motion", "cg-widget-minute")}
/>
<circle cx="32" cy="32" r="1.4" fill={INK} />
</>
),
/** Bento composition */
"bento-grid": (
<>
<rect
x="10"
y="12"
width="24"
height="22"
rx="3"
fill={INK}
className={cn(
"cg-motion",
"motion-safe:group-hover/cg:-translate-x-[1.5px] motion-safe:group-hover/cg:-translate-y-[1.5px]",
)}
/>
<rect
x="36"
y="12"
width="18"
height="10"
rx="3"
fill={SOFT}
className={cn(
"cg-motion",
"motion-safe:group-hover/cg:translate-x-[1.5px] motion-safe:group-hover/cg:-translate-y-[1.5px]",
)}
/>
<rect
x="36"
y="24"
width="18"
height="10"
rx="3"
fill={FAINT}
className={cn("cg-motion", "motion-safe:group-hover/cg:translate-x-[1.5px]")}
/>
<rect
x="10"
y="36"
width="44"
height="16"
rx="3"
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:translate-y-[1.5px]")}
/>
</>
),
/** Headline + CTA + scroll cue */
hero: (
<>
<Bar cx={32} y={14} w={40} h={6} />
<Bar cx={32} y={24} w={30} h={4} fill={SOFT} />
<g className={cn("cg-motion", "motion-safe:group-hover/cg:scale-[1.08]")}>
<rect x="22" y="32" width="20" height="10" rx="5" fill={INK} />
<Bar cx={32} y={35.5} w={10} h={3} fill={FAINT} />
</g>
<path
d="M29 47 L32 50 L35 47"
fill="none"
stroke={SOFT}
strokeWidth="2"
strokeLinecap={CAP}
strokeLinejoin={JOIN}
className={cn("cg-motion-frame", "motion-safe:group-hover/cg:animate-cg-bounce")}
/>
</>
),
/** Sections + scrollbar thumb */
scroll: (
<>
<g className={cn("cg-motion", "motion-safe:group-hover/cg:-translate-y-3.5")}>
<rect
x="10"
y="14"
width="36"
height="8"
rx="2"
fill={INK}
className={cn("cg-motion", "motion-safe:group-hover/cg:opacity-0")}
/>
<rect x="10" y="28" width="36" height="8" rx="2" fill={SOFT} />
<rect x="10" y="42" width="36" height="8" rx="2" fill={FAINT} />
<rect
x="10"
y="56"
width="36"
height="8"
rx="2"
fill={FAINT}
opacity="0"
className={cn("cg-motion", "motion-safe:group-hover/cg:opacity-100")}
/>
</g>
<rect x="50" y="14" width="3.5" height="36" rx="1.75" fill={FAINT} />
<rect
x="50"
y="18"
width="3.5"
height="11"
rx="1.75"
fill={SOFT}
className={cn("cg-motion", "motion-safe:group-hover/cg:translate-y-[13px]")}
/>
</>
),
/** Center slide + side peeks + pagination dots */
carousel: (
<>
<rect
x="6"
y="15"
width="10"
height="26"
rx="4"
fill={FAINT}
className={cn("cg-motion", "motion-safe:group-hover/cg:-translate-x-0.5")}
/>
<rect
x="48"
y="15"
width="10"
height="26"
rx="4"
fill={FAINT}
className={cn("cg-motion", "motion-safe:group-hover/cg:translate-x-0.5")}
/>
<g className={cn("cg-motion", "motion-safe:group-hover/cg:scale-[1.04]")}>
<rect
x="20"
y="10"
width="24"
height="36"
rx="4"
fill="none"
stroke={INK}
strokeWidth="2.2"
/>
<rect x="24" y="14" width="16" height="12" rx="2" fill={SOFT} />
<Bar cx={32} y={31} w={14} h={3} fill={SOFT} />
<Bar cx={32} y={37} w={10} h={2.5} fill={FAINT} />
</g>
<circle cx="25" cy="52" r="1.8" fill={SOFT} />
<circle
cx="32"
cy="52"
r="2.2"
fill={INK}
className={cn(
"cg-motion",
"motion-safe:group-hover/cg:scale-[0.82] motion-safe:group-hover/cg:fill-[var(--cg-soft)]",
)}
/>
<circle
cx="39"
cy="52"
r="1.8"
fill={SOFT}
className={cn(
"cg-motion",
"motion-safe:group-hover/cg:scale-[1.22] motion-safe:group-hover/cg:fill-[var(--cg-ink)] motion-safe:group-hover/cg:delay-[60ms]",
)}
/>
</>
),
/** Loading placeholder layout */
skeleton: (
<>
<rect
x="12"
y="12"
width="40"
height="40"
rx="4"
fill="none"
stroke={FAINT}
strokeWidth="2.2"
/>
<circle
cx="21"
cy="21"
r="5"
fill={SOFT}
className={cn("cg-motion-frame", "motion-safe:group-hover/cg:animate-cg-shimmer")}
/>
<rect
x="30"
y="17.5"
width="16"
height="3"
rx="1.5"
fill={SOFT}
className={cn(
"cg-motion-frame",
"motion-safe:group-hover/cg:animate-cg-shimmer",
"motion-safe:group-hover/cg:[animation-delay:0.1s]",
)}
/>
<rect
x="30"
y="23"
width="12"
height="2.5"
rx="1.25"
fill={FAINT}
className={cn(
"cg-motion-frame",
"motion-safe:group-hover/cg:animate-cg-shimmer",
"motion-safe:group-hover/cg:[animation-delay:0.2s]",
)}
/>
<rect
x="16"
y="32"
width="32"
height="3"
rx="1.5"
fill={SOFT}
className={cn(
"cg-motion-frame",
"motion-safe:group-hover/cg:animate-cg-shimmer",
"motion-safe:group-hover/cg:[animation-delay:0.3s]",
)}
/>
<rect
x="16"
y="39"
width="28"
height="3"
rx="1.5"
fill={SOFT}
className={cn(
"cg-motion-frame",
"motion-safe:group-hover/cg:animate-cg-shimmer",
"motion-safe:group-hover/cg:[animation-delay:0.4s]",
)}
/>
<rect
x="16"
y="46"
width="24"
height="3"
rx="1.5"
fill={FAINT}
className={cn(
"cg-motion-frame",
"motion-safe:group-hover/cg:animate-cg-shimmer",
"motion-safe:group-hover/cg:[animation-delay:0.5s]",
)}
/>
</>
),
/** Tilted feature card + highlight sparkle */
"feature-cards": (
<>
<g className={cn("cg-feature-tilt", "motion-safe:group-hover/cg:rotate-0")}>
<rect
x="16"
y="18"
width="32"
height="28"
rx="4"
fill="none"
stroke={INK}
strokeWidth="2.2"
/>
<rect x="20" y="22" width="12" height="9" rx="2" fill={SOFT} />
<Bar cx={40} y={24.5} w={9} h={3} />
<Bar cx={32} y={36} w={24} h={2.5} fill={SOFT} />
<Bar cx={32} y={41} w={18} h={2.5} fill={FAINT} />
</g>
<path
d="M51 9 L52.5 13 L56.5 14.5 L52.5 16 L51 20 L49.5 16 L45.5 14.5 L49.5 13 Z"
fill={INK}
className={cn("cg-motion-frame", "motion-safe:group-hover/cg:animate-cg-twinkle")}
/>
</>
),
/** Speed dial — FAB with an upward fan of actions */
fabs: (
<>
{[
[12, 40],
[18, 26],
[32, 20],
[46, 26],
[52, 40],
].map(([cx, cy], i) => (
<circle
key={`${cx}-${cy}`}
cx={cx}
cy={cy}
r="4"
fill={SOFT}
className={cn(
"cg-motion",
i === 0 && "motion-safe:group-hover/cg:-translate-x-[2.5px]",
i === 1 &&
"motion-safe:group-hover/cg:-translate-x-[1.8px] motion-safe:group-hover/cg:-translate-y-[1.8px]",
i === 2 && "motion-safe:group-hover/cg:-translate-y-[2.5px]",
i === 3 &&
"motion-safe:group-hover/cg:translate-x-[1.8px] motion-safe:group-hover/cg:-translate-y-[1.8px]",
i === 4 && "motion-safe:group-hover/cg:translate-x-[2.5px]",
)}
/>
))}
<circle cx="32" cy="40" r="8" fill={INK} />
<path
d="M32 36 V44 M28 40 H36"
stroke={FAINT}
strokeWidth="2"
strokeLinecap={CAP}
className={cn("cg-motion", "motion-safe:group-hover/cg:rotate-45")}
/>
</>
),
};
const DEFAULT_GLYPH = (
<>
{[16, 32, 48].map((cx) =>
[16, 32, 48].map((cy) => (
<rect key={`${cx}-${cy}`} x={cx - 5} y={cy - 5} width="10" height="10" rx="2" fill={SOFT} />
)),
)}
</>
);
export function CategoryGlyph({ variant }: { variant: string }) {
return <g>{GLYPHS[variant] ?? DEFAULT_GLYPH}</g>;
}
// ── animata/skeleton/category-skeleton.tsx (https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/skeleton/category-skeleton.tsx)
import { CategoryGlyph } from "@/animata/skeleton/category-glyphs";
import { cn } from "@/lib/utils";
export type CategorySkeletonVariant = string;
type CategorySkeletonProps = {
variant: CategorySkeletonVariant;
className?: string;
};
const CARD_W = 358;
const CARD_H = 201;
/** Glyph viewBox is 64×64; scale so art fills ~78% of card height */
const GLYPH_SCALE = 2.35;
export default function CategorySkeleton({ variant, className }: CategorySkeletonProps) {
return (
<svg
viewBox={`0 0 ${CARD_W} ${CARD_H}`}
className={cn(
"[--cg-darkest:#76756f] [--cg-lightest:#e3e3e3] [--cg-ink:var(--ink,var(--cg-darkest))] [--cg-faint:var(--ink-faint,var(--cg-lightest))] [--cg-soft:color-mix(in_oklab,var(--cg-ink)_50%,transparent)] dark:[--cg-ink:var(--ink,var(--cg-lightest))] dark:[--cg-faint:var(--ink-faint,var(--cg-darkest))]",
"w-full overflow-visible rounded-2xl text-foreground motion-safe:transition-[scale,transform] motion-safe:duration-300 motion-safe:ease-out",
className,
)}
aria-hidden="true"
>
<rect
width={CARD_W}
height={CARD_H}
rx="16"
fill="currentColor"
fillOpacity="0.04"
stroke="currentColor"
strokeOpacity="0.1"
strokeWidth="1"
/>
<g
transform={`translate(${CARD_W / 2} ${CARD_H / 2}) scale(${GLYPH_SCALE}) translate(-32 -32)`}
>
<CategoryGlyph variant={variant} />
</g>
</svg>
);
}
// ── 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);
}Kawalan · HTML · CSS · JS
Sunting kod dan laraskan dengan kawalan. Pratonton dikemas kini semasa anda menaip.

Komponen ini berjalan daripada binaan berpakej, jadi skripnya baca sahaja di sini. Sunting HTML dan CSS; sumber penuh ada dalam tab Kod.
Sunting setiap komponen secara langsung, laraskan dengan kawalan, muat turun sumber penuh dan salin prompt lanjutan.
$49 sekali bayarHarga sementara
Mod ujian: tiada bayaran sebenar dikenakan.
Percuma: pratonton, butang salin dan nota pelajaran.
Kad 358 by 201 SVG melukis glyph kelabu ringkas untuk setiap kategori sebagai pemegang tempat, memadankan tema terang dan gelap.
Keadaan kosong dan memuatkan ruang letak dalam katalog.
Tukar --cg-darkest (#76756f), --cg-lightest (#e3e3e3), --cg-ink dan --cg-faint dan GLYPH_SCALE daripada 2.35.
Tambahkan komponen "Ilustrasi rangka kategori" daripada Animata (github.com/codse/animata) (MIT) ke aplikasi React + Tailwind CSS saya. Fail sumber: https://github.com/codse/animata/blob/25c27e5a874c60a56dcc1609df3b2c4f5f8456f8/animata/skeleton/category-skeleton.tsx. Kad 358 by 201 SVG melukis glyph kelabu ringkas untuk setiap kategori sebagai pemegang tempat, memadankan tema terang dan gelap. Gunakan untuk: Keadaan kosong dan memuatkan ruang letak dalam katalog. Tetapan untuk dilaras: Tukar --cg-darkest (#76756f), --cg-lightest (#e3e3e3), --cg-ink dan --cg-faint dan GLYPH_SCALE daripada 2.35. Sokong tema cerah dan gelap serta hormati prefers-reduced-motion. Kekalkan notis lesen MIT.
Prompt lebih panjang dengan langkah pelarasan, kebolehcapaian dan integrasi.