{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "arc-scroll-timeline-demo",
  "type": "registry:block",
  "title": "Arc Scroll: Timeline",
  "description": "Curved Scroll Carousel example, Timeline: A company history with tighter spacing, the current year highlighted and a year rail that follows along. A take on the carousel (slider) and scroll animation (on scroll). Fits testimonials, portfolio, features and team sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "testimonials",
    "portfolio",
    "features",
    "team",
    "carousel",
    "scroll-animation",
    "timeline",
    "scroll",
    "cards",
    "motion"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/arc-scroll#arc-scroll-timeline-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/arc-scroll.json"
  ],
  "files": [
    {
      "path": "components/arc-scroll-timeline-demo.tsx",
      "type": "registry:component",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@/lib/utils\";\nimport { ArcScroll } from \"@/components/ui/arc-scroll\";\n\nconst milestones = [\n  { year: 2019, label: \"Founded\", detail: \"Two designers, a spare bedroom and a prototype.\" },\n  { year: 2020, label: \"Beta\", detail: \"Version 0.1 ships to forty teams who said yes.\" },\n  { year: 2021, label: \"Seed\", detail: \"A seed round grows the team to twelve.\" },\n  { year: 2022, label: \"1.0\", detail: \"A stable API and our first paying customers.\" },\n  { year: 2023, label: \"10k teams\", detail: \"Ten thousand teams ship with us every week.\" },\n  { year: 2024, label: \"Global\", detail: \"New offices in Berlin and Singapore.\" },\n  { year: 2025, label: \"Platform\", detail: \"Plugins open to third-party developers.\" },\n  { year: 2026, label: \"Today\", detail: \"Still small, still shipping every week.\" },\n];\n\nexport function ArcScrollTimelineDemo() {\n  const scrollRef = React.useRef<HTMLDivElement>(null);\n  const [active, setActive] = React.useState(0);\n  const reduceMotion = useReducedMotion();\n  const milestone = milestones[active];\n\n  return (\n    <div className=\"relative w-full overflow-hidden rounded-xl border border-zinc-200 bg-zinc-50 dark:border-zinc-800 dark:bg-zinc-950\">\n      <div ref={scrollRef} className=\"relative h-[var(--demo-height,34rem)] overflow-y-auto overscroll-contain\">\n        <ArcScroll\n          containerRef={scrollRef}\n          stageClassName=\"h-[var(--demo-height,34rem)]\"\n          spacing={12}\n          scrollPerCard={220}\n          onActiveChange={setActive}\n          overlay={\n            <div className=\"absolute inset-x-0 bottom-8 flex flex-col items-center gap-6 px-6 text-center\">\n              <motion.p\n                key={milestone.year}\n                initial={{ opacity: 0, y: reduceMotion ? 0 : 6 }}\n                animate={{ opacity: 1, y: 0 }}\n                transition={{ duration: 0.25, ease: \"easeOut\" }}\n                className=\"max-w-xs text-sm text-zinc-600 dark:text-zinc-400\"\n              >\n                {milestone.detail}\n              </motion.p>\n              <ol className=\"flex gap-1 font-mono text-[11px] tabular-nums\">\n                {milestones.map((item, index) => (\n                  <li\n                    key={item.year}\n                    className={cn(\n                      \"relative px-1.5 py-1 transition-colors duration-200\",\n                      index === active\n                        ? \"text-zinc-900 dark:text-zinc-50\"\n                        : \"text-zinc-400 dark:text-zinc-600\",\n                    )}\n                  >\n                    {index === active ? (\n                      <motion.span\n                        layoutId=\"arc-timeline-tick\"\n                        transition={{ type: \"spring\", stiffness: 500, damping: 40 }}\n                        className=\"absolute inset-x-1.5 -bottom-0.5 h-px bg-current\"\n                      />\n                    ) : null}\n                    {String(item.year).slice(2)}\n                  </li>\n                ))}\n              </ol>\n            </div>\n          }\n        >\n          {milestones.map((item, index) => (\n            <div\n              key={item.year}\n              className={cn(\n                \"flex h-40 w-28 flex-col justify-between rounded-2xl p-3 shadow-lg ring-1 transition-colors duration-300 sm:w-32\",\n                index === active\n                  ? \"bg-zinc-900 text-zinc-50 shadow-zinc-900/20 ring-zinc-900 dark:bg-zinc-50 dark:text-zinc-900 dark:ring-zinc-50\"\n                  : \"bg-white text-zinc-900 shadow-zinc-900/5 ring-zinc-200 dark:bg-zinc-900 dark:text-zinc-50 dark:shadow-black/40 dark:ring-zinc-800\",\n              )}\n            >\n              <span className=\"font-mono text-[10px] uppercase tracking-widest opacity-60\">\n                {item.label}\n              </span>\n              <span className=\"text-3xl font-semibold tracking-tight tabular-nums\">\n                {item.year}\n              </span>\n            </div>\n          ))}\n        </ArcScroll>\n      </div>\n    </div>\n  );\n}\n"
    }
  ]
}