{
  "id": "gather-arc-carousel",
  "kind": "element",
  "title": "Gather arc carousel",
  "summary": "Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.",
  "url": "https://enrichr.dev/elements/gather-arc-carousel.html",
  "section": "gallery",
  "techniques": [
    "carousel"
  ],
  "stack": [
    "Vanilla JS",
    "CSS"
  ],
  "frameworks": [
    "React",
    "Next.js",
    "Vanilla"
  ],
  "mood": [
    "playful",
    "soft"
  ],
  "intents": [
    "curved card carousel",
    "arc photo slider with title",
    "rotating cards on a circle",
    "hero carousel with arrows and text",
    "mouse wheel card carousel"
  ],
  "status": "tested",
  "params": [
    {
      "key": "title",
      "label": "Title",
      "type": "text",
      "value": "Gather here"
    },
    {
      "key": "text",
      "label": "Text",
      "type": "text",
      "value": "Seven corgis on one arc. Use the arrows, the arrow keys or the mouse wheel to bring the next one forward."
    },
    {
      "key": "angle",
      "label": "Angle between cards (deg)",
      "type": "range",
      "min": 10,
      "max": 40,
      "step": 1,
      "value": 22
    },
    {
      "key": "radius",
      "label": "Arc radius (px)",
      "type": "range",
      "min": 400,
      "max": 1200,
      "step": 10,
      "value": 750
    },
    {
      "key": "duration",
      "label": "Move time (ms)",
      "type": "range",
      "min": 200,
      "max": 1600,
      "step": 50,
      "value": 800
    },
    {
      "key": "wheel",
      "label": "Mouse wheel moves cards",
      "type": "select",
      "options": [
        [
          "on",
          "On"
        ],
        [
          "off",
          "Off"
        ]
      ],
      "value": "on"
    },
    {
      "key": "centre",
      "label": "Centre colour",
      "type": "color",
      "value": "#0c1e18"
    },
    {
      "key": "glow",
      "label": "Glow ring colour",
      "type": "color",
      "value": "#1a7a4c"
    },
    {
      "key": "edge",
      "label": "Edge colour",
      "type": "color",
      "value": "#050d0a"
    },
    {
      "key": "accent",
      "label": "Accent (focus ring)",
      "type": "color",
      "value": "#e6ff55"
    }
  ],
  "license": "Free to use in personal and client projects during the preview. Final licence terms will be published here before any paid tier starts; ask before reselling the code as a collection.",
  "contract": "function mount(root, opts) -> { update(partialOpts), destroy() }; root must contain the element markup",
  "exports": {
    "claude": "Add the \"Gather arc carousel\" element to this project.\n\nThis is the \"Gather arc carousel\" element from the Enrichr Library: Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.\nPage: https://enrichr.dev/elements/gather-arc-carousel.html\nMachine-readable spec: https://enrichr.dev/elements/gather-arc-carousel.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nSteps:\n1. Look at the project first to see its framework and where components, styles and static files live. Follow its conventions.\n2. Fetch https://enrichr.dev/elements/gather-arc-carousel.json if you can read URLs (fields: source.markup, source.css, source.js, params); otherwise use the source at the end of this message.\n3. Add the files, mount it where I tell you (default: the top of the home page), and pass the settings below as the opts.\n4. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n5. Run the dev server and check it. with reduced motion on, nothing moves; it works at 375px wide and with touch only; there are no console errors; scrolling stays smooth; destroy() is called when it unmounts.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}",
    "chatgpt": "I want the \"Gather arc carousel\" element on my website. Below is its complete source. Please:\n1. Build one self-contained index.html that I can open locally to see it working (put the CSS in a <style> tag and the JavaScript in a <script> tag, with the markup in the body).\n2. Then explain, step by step, which parts go where in my own site, and how to mount it. My stack is: [tell me yours, or say \"plain HTML\"].\n3. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nThis is the \"Gather arc carousel\" element from the Enrichr Library: Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.\nPage: https://enrichr.dev/elements/gather-arc-carousel.html\nMachine-readable spec: https://enrichr.dev/elements/gather-arc-carousel.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}\n\nVerify: with reduced motion on, nothing moves; it works at 375px wide and with touch only; there are no console errors; scrolling stays smooth; destroy() is called when it unmounts.",
    "cursor": "Add the \"Gather arc carousel\" element to this codebase.\n\nThis is the \"Gather arc carousel\" element from the Enrichr Library: Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.\nPage: https://enrichr.dev/elements/gather-arc-carousel.html\nMachine-readable spec: https://enrichr.dev/elements/gather-arc-carousel.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nUse Composer / agent mode. First search the repo for how components, styles and scripts are organised, then add the files in the matching places, mount it on the page I name, and run the app to confirm it works. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}\n\nVerify: with reduced motion on, nothing moves; it works at 375px wide and with touch only; there are no console errors; scrolling stays smooth; destroy() is called when it unmounts.\n\nOptional: save this as .cursor/rules/enrichr-gather-arc-carousel.mdc so the rule stays with the project:\n---\ndescription: How to use the Enrichr Gather arc carousel element\nalwaysApply: false\n---\nmount(root, opts) expects the element markup inside root and returns { update, destroy }. Always call destroy() on unmount and never edit the ef- class names.",
    "v0": "Create a Next.js (App Router) client component for the \"Gather arc carousel\" element. Tailwind is available but this component needs no utility classes.\n\nThis is the \"Gather arc carousel\" element from the Enrichr Library: Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.\nPage: https://enrichr.dev/elements/gather-arc-carousel.html\nMachine-readable spec: https://enrichr.dev/elements/gather-arc-carousel.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nFiles to create:\n- gather-arc-carousel.js : the JavaScript below, with one line appended at the end: export { mount };  (and the markup exported as: export const markup = \"<the markup string>\";). If the project uses TypeScript and does not allow JS imports, put // @ts-nocheck on the first line.\n- the CSS below goes in your global stylesheet (or a plain .css file imported once at the app root). The class names are global and start with ef-.\n\nUse this component as the wrapper (adjust the import paths):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./gather-arc-carousel\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function GatherArcCarousel(props: Record<string, unknown>) {\n  const ref = useRef<HTMLDivElement>(null);\n  const fx = useRef<{ update: (o: object) => void; destroy: () => void } | null>(null);\n  useEffect(() => {\n    const root = ref.current;\n    if (!root) return;\n    root.innerHTML = markup;\n    fx.current = mount(root, props);\n    return () => { fx.current?.destroy(); fx.current = null; root.innerHTML = \"\"; };\n  }, []);\n  useEffect(() => { fx.current?.update(props); }, [JSON.stringify(props)]);\n  return <div ref={ref} />;\n}\n```\n\nRender it on the home page so I can see it. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}",
    "lovable": "Add the \"Gather arc carousel\" element to this React + Vite + TypeScript + Tailwind project. Do not install any packages.\n\nThis is the \"Gather arc carousel\" element from the Enrichr Library: Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.\nPage: https://enrichr.dev/elements/gather-arc-carousel.html\nMachine-readable spec: https://enrichr.dev/elements/gather-arc-carousel.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nFiles to create:\n- gather-arc-carousel.js : the JavaScript below, with one line appended at the end: export { mount };  (and the markup exported as: export const markup = \"<the markup string>\";). If the project uses TypeScript and does not allow JS imports, put // @ts-nocheck on the first line.\n- the CSS below goes in your global stylesheet (or a plain .css file imported once at the app root). The class names are global and start with ef-.\n\nWrapper component (src/components/GatherArcCarousel.tsx):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./gather-arc-carousel\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function GatherArcCarousel(props: Record<string, unknown>) {\n  const ref = useRef<HTMLDivElement>(null);\n  const fx = useRef<{ update: (o: object) => void; destroy: () => void } | null>(null);\n  useEffect(() => {\n    const root = ref.current;\n    if (!root) return;\n    root.innerHTML = markup;\n    fx.current = mount(root, props);\n    return () => { fx.current?.destroy(); fx.current = null; root.innerHTML = \"\"; };\n  }, []);\n  useEffect(() => { fx.current?.update(props); }, [JSON.stringify(props)]);\n  return <div ref={ref} />;\n}\n```\n\nRemove the \"use client\" line if it is not needed. Show it on the home page. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}",
    "bolt": "Create a small Vite project (vanilla JavaScript, no framework unless I already have one) that shows the \"Gather arc carousel\" element.\n\nThis is the \"Gather arc carousel\" element from the Enrichr Library: Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.\nPage: https://enrichr.dev/elements/gather-arc-carousel.html\nMachine-readable spec: https://enrichr.dev/elements/gather-arc-carousel.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nFiles: index.html (a container element, then a script tag), style.css (the CSS below), gather-arc-carousel.js (the JavaScript below) and main.js that sets the container's innerHTML to the markup and calls mount(container, opts) with the settings below. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}\n\nVerify: with reduced motion on, nothing moves; it works at 375px wide and with touch only; there are no console errors; scrolling stays smooth; destroy() is called when it unmounts.",
    "replit": "Create a new HTML, CSS and JavaScript Repl that shows the \"Gather arc carousel\" element. No packages, no server code.\n\nThis is the \"Gather arc carousel\" element from the Enrichr Library: Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.\nPage: https://enrichr.dev/elements/gather-arc-carousel.html\nMachine-readable spec: https://enrichr.dev/elements/gather-arc-carousel.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nFiles: index.html (a container element, link style.css, load gather-arc-carousel.js and then main.js), style.css (the CSS below), gather-arc-carousel.js (the JavaScript below), main.js (sets the container's innerHTML to the markup, then calls mount(container, opts) with the settings below). Press Run to preview. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}",
    "figma": "Designer handoff notes for the \"Gather arc carousel\" element (Enrichr Library). Figma cannot run this JavaScript inside a design file, so use it as a motion reference and hand the code to a developer.\n\nThis is the \"Gather arc carousel\" element from the Enrichr Library: Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.\nPage: https://enrichr.dev/elements/gather-arc-carousel.html\nMachine-readable spec: https://enrichr.dev/elements/gather-arc-carousel.json\n\nWhat it does: All the cards share one transform origin 750 px below their top edge, so rotating each one by 22 degrees per step away from the current card spreads them on a wide arc that falls away to both sides. The current card is scaled to 1.1 around that same far pivot, which lifts it well above the others, and lit to full brightness; the rest are scaled to 0.8 and dimmed to half. Moving is a plain CSS transition: 0.8 seconds on cubic-bezier(0.2, 0.8, 0.2, 1) for the turn and the default ease for the light and size. Unlike a looping deck, the arc has two ends. The layout is drawn for a 720 px tall box and scales down for smaller ones. The background is a radial gradient from a dark centre through a green ring to a darker edge.\nAccessibility: The carousel is a labelled region with a focusable photo arc: Left, Right, Home and End move it. Previous and Next are real buttons with labels, marked disabled at the ends. The new photo is announced in a polite live region, and the other cards are hidden from assistive technology. The title and text are real text with a soft shadow for contrast over the photo. With prefers-reduced-motion the cards jump to their new places without a transition.\n\nTunable settings:\n- Title: text, default Gather here\n- Text: text, default Seven corgis on one arc. Use the arrows, the arrow keys or the mouse wheel to bring the next one forward.\n- Angle between cards (deg): range 10 to 40, step 1, default 22\n- Arc radius (px): range 400 to 1200, step 10, default 750\n- Move time (ms): range 200 to 1600, step 50, default 800\n- Mouse wheel moves cards: select (On / Off), default on\n- Centre colour: color, default #0c1e18\n- Glow ring colour: color, default #1a7a4c\n- Edge colour: color, default #050d0a\n- Accent (focus ring): color, default #e6ff55\n\nCurrent settings:\n{{SETTINGS}}\n\nFor the developer: Element contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\nIn Figma:\n- Draw the resting state as a frame and the end state as a second frame; link them with Smart Animate to show the motion in a prototype.\n- Put the settings above in the frame's notes or Dev Mode annotations so the developer matches them.\n- Link https://enrichr.dev/elements/gather-arc-carousel.html in the handoff: the live demo and the copy-ready code are there. Developers can paste the prompts for Claude, Cursor or v0 from the Export menu.\nNothing is copied from another designer's file; this is original code from Enrichr.",
    "framer": "Add the \"Gather arc carousel\" element to Framer as a code component. Framer code components are React, so wrap the vanilla code like this. Check it in the Framer editor, as Framer's component API can change.\n\nThis is the \"Gather arc carousel\" element from the Enrichr Library: Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.\nPage: https://enrichr.dev/elements/gather-arc-carousel.html\nMachine-readable spec: https://enrichr.dev/elements/gather-arc-carousel.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\n1. In Framer: Assets > Code > New component. Name it GatherArcCarousel.\n2. Paste the JavaScript below into a separate code file named gather-arc-carousel.js in the same project, with  export { mount };  and  export const markup = \"<the markup string>\";  added. Put the CSS into the component as a <style> tag.\n3. Component:\n```tsx\nimport { addPropertyControls, ControlType } from \"framer\"\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./gather-arc-carousel\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function GatherArcCarousel(props: any) {\n  const ref = useRef<HTMLDivElement>(null);\n  const fx = useRef<{ update: (o: object) => void; destroy: () => void } | null>(null);\n  useEffect(() => {\n    const root = ref.current;\n    if (!root) return;\n    root.innerHTML = markup;\n    fx.current = mount(root, props);\n    return () => { fx.current?.destroy(); fx.current = null; root.innerHTML = \"\"; };\n  }, []);\n  useEffect(() => { fx.current?.update(props); }, [JSON.stringify(props)]);\n  return <div ref={ref} />;\n}\n\naddPropertyControls(GatherArcCarousel, {\n  title: { type: ControlType.String, title: \"Title\", defaultValue: \"Gather here\" },\n  text: { type: ControlType.String, title: \"Text\", defaultValue: \"Seven corgis on one arc. Use the arrows, the arrow keys or the mouse wheel to bring the next one forward.\" },\n  angle: { type: ControlType.Number, title: \"Angle between cards\", min: 10, max: 40, step: 1, defaultValue: 22 },\n  radius: { type: ControlType.Number, title: \"Arc radius\", min: 400, max: 1200, step: 10, defaultValue: 750 },\n  duration: { type: ControlType.Number, title: \"Move time\", min: 200, max: 1600, step: 50, defaultValue: 800 },\n  wheel: { type: ControlType.Enum, title: \"Mouse wheel moves cards\", options: [\"on\",\"off\"], optionTitles: [\"On\",\"Off\"], defaultValue: \"on\" },\n  centre: { type: ControlType.Color, title: \"Centre colour\", defaultValue: \"#0c1e18\" },\n  glow: { type: ControlType.Color, title: \"Glow ring colour\", defaultValue: \"#1a7a4c\" },\n  edge: { type: ControlType.Color, title: \"Edge colour\", defaultValue: \"#050d0a\" },\n  accent: { type: ControlType.Color, title: \"Accent (focus ring)\", defaultValue: \"#e6ff55\" },\n})\n```\n4. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}",
    "webflow": "Add the \"Gather arc carousel\" element to a Webflow site with an Embed element. Test it on the published or preview site: scripts in embeds may not run inside the Designer canvas.\n\nThis is the \"Gather arc carousel\" element from the Enrichr Library: Photo cards swing on a wide arc from one far pivot, the lit centre card lifted over the rest, under a title, a line of text and two round arrows.\nPage: https://enrichr.dev/elements/gather-arc-carousel.html\nMachine-readable spec: https://enrichr.dev/elements/gather-arc-carousel.json\n\nElement contract (vanilla JavaScript, no dependencies):\n- The JavaScript defines a function mount(root, opts).\n- root is an empty container element. Set root.innerHTML to the markup first, then call mount(root, opts).\n- It returns an object with update(partialOpts) and destroy(). Call destroy() when the element is removed. Some elements also return replay().\n- The CSS classes all start with \"ef-\" so they will not collide with your styles.\n\n1. Add an Embed element where it should appear. Paste a <style> block with the CSS, one container <div id=\"enrichr-gather-arc-carousel\"></div>, and a <script> block with the JavaScript followed by:\n   mount(document.getElementById(\"enrichr-gather-arc-carousel\"), { ...your settings... });\n   (set the container's innerHTML to the markup first, as in the contract).\n2. Embed elements have a size limit (check Webflow's current number). If the code is longer, host the JS and CSS as files and link them from Custom code in the page settings, then keep only the container and the mount call in the Embed.\n3. Keep the behaviour of the source unchanged. Do not add dependencies. Respect prefers-reduced-motion. Keep text as real HTML.\n\nSettings:\n{{SETTINGS}}\n\nSource:\n{{CODE}}"
  },
  "exportTools": [
    "claude",
    "chatgpt",
    "cursor",
    "v0",
    "lovable",
    "bolt",
    "replit",
    "figma",
    "framer",
    "webflow"
  ],
  "accessibility": "The carousel is a labelled region with a focusable photo arc: Left, Right, Home and End move it. Previous and Next are real buttons with labels, marked disabled at the ends. The new photo is announced in a polite live region, and the other cards are hidden from assistive technology. The title and text are real text with a soft shadow for contrast over the photo. With prefers-reduced-motion the cards jump to their new places without a transition.",
  "performance": "Only transform, scale and filter change, through CSS transitions, so nothing runs in JavaScript between moves. The mouse wheel is throttled to one step every 600 ms and lets the page scroll on once the arc reaches an end. A ResizeObserver rescales the layout when the box changes.",
  "dependencies": [],
  "codepen": "https://codepen.io/Enrichr-Dev/pen/QwpzBZe",
  "source": {
    "markup": "<div class=\"ef-gac\" role=\"region\" aria-roledescription=\"carousel\" aria-label=\"Corgi arc carousel\">\n  <div class=\"ef-gac__stage\" tabindex=\"0\" aria-label=\"Photo arc. Use the left and right arrow keys to move along it.\">\n    <div class=\"ef-gac__track\">\n      <figure class=\"ef-gac__card\"><img class=\"ef-gac__img\" src=\"/img/library/corgi-2.jpg\" alt=\"Smiling corgi in a field of purple and orange pansies\" draggable=\"false\"></figure>\n      <figure class=\"ef-gac__card\"><img class=\"ef-gac__img\" src=\"/img/library/corgi-4.jpg\" alt=\"Corgi running down a dirt road at sunset\" style=\"object-position: 10% 50%\" draggable=\"false\"></figure>\n      <figure class=\"ef-gac__card\"><img class=\"ef-gac__img\" src=\"/img/library/corgi-3.jpg\" alt=\"Corgi standing on a rock in front of autumn leaves\" draggable=\"false\"></figure>\n      <figure class=\"ef-gac__card\"><img class=\"ef-gac__img\" src=\"/img/library/corgi-1.jpg\" alt=\"Corgi puppy with huge ears on an orange backdrop\" draggable=\"false\"></figure>\n      <figure class=\"ef-gac__card\"><img class=\"ef-gac__img\" src=\"/img/library/corgi-6.jpg\" alt=\"Corgi with its tongue out in a white studio\" style=\"object-position: 48% 50%\" draggable=\"false\"></figure>\n      <figure class=\"ef-gac__card\"><img class=\"ef-gac__img\" src=\"/img/library/corgi-5.jpg\" alt=\"Corgi resting its chin on the floor of a white studio\" style=\"object-position: 70% 50%\" draggable=\"false\"></figure>\n      <figure class=\"ef-gac__card\"><img class=\"ef-gac__img\" src=\"/img/library/corgi-2.jpg\" alt=\"Close up of a happy corgi among the flowers\" style=\"object-position: 50% 32%; transform: scale(1.35)\" draggable=\"false\"></figure>\n    </div>\n    <div class=\"ef-gac__content\">\n      <h2 class=\"ef-gac__title\">Gather here</h2>\n      <p class=\"ef-gac__text\">Seven corgis on one arc. Use the arrows, the arrow keys or the mouse wheel to bring the next one forward.</p>\n      <div class=\"ef-gac__nav\">\n        <button type=\"button\" class=\"ef-gac__btn ef-gac__prev\" aria-label=\"Previous photo\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\"><polyline points=\"14.5 6 8.5 12 14.5 18\"/></svg></button>\n        <button type=\"button\" class=\"ef-gac__btn ef-gac__next\" aria-label=\"Next photo\"><svg viewBox=\"0 0 24 24\" aria-hidden=\"true\" focusable=\"false\"><polyline points=\"9.5 6 15.5 12 9.5 18\"/></svg></button>\n      </div>\n    </div>\n  </div>\n  <p class=\"ef-gac__live\" aria-live=\"polite\" aria-atomic=\"true\"></p>\n</div>",
    "css": "/* Enrichr Library · https://enrichr.dev */\n.ef-gac { --ef-gac-c1: #0c1e18; --ef-gac-c2: #1a7a4c; --ef-gac-c3: #050d0a; --ef-gac-ink: #fbf8f1; --ef-gac-acc: #e6ff55; --ef-gac-k: 1; --ef-gac-cw: 200px; --ef-gac-ch: 300px; --ef-gac-r: 750px; --ef-gac-d: 800ms; position: relative; box-sizing: border-box; width: 100%; height: 100%; min-height: 30rem; flex: 1 1 auto; overflow: hidden; border-radius: 1rem; background: radial-gradient(circle at center, var(--ef-gac-c1) 0%, var(--ef-gac-c2) 60%, var(--ef-gac-c3) 100%); color: var(--ef-gac-ink); font-family: \"Instrument Sans\", system-ui, sans-serif; }\n.ef-gac::after { content: \"\"; position: absolute; inset: 0; z-index: 40; border-radius: inherit; pointer-events: none; }\n.ef-gac:has(.ef-gac__stage:focus-visible)::after { box-shadow: inset 0 0 0 3px var(--ef-gac-acc); }\n.ef-gac .ef-gac__stage { position: absolute; left: 0; right: 0; top: calc(50px * var(--ef-gac-k)); height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; perspective: 2000px; outline: none; touch-action: pan-y; }\n.ef-gac .ef-gac__track { position: absolute; top: 15%; left: 50%; width: var(--ef-gac-cw); height: var(--ef-gac-ch); margin-left: calc(var(--ef-gac-cw) / -2); transform-style: preserve-3d; }\n.ef-gac .ef-gac__card { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: calc(30px * var(--ef-gac-k)); background: var(--ef-gac-c1); transform-origin: 50% var(--ef-gac-r); transition: transform var(--ef-gac-d) cubic-bezier(0.2, 0.8, 0.2, 1), filter var(--ef-gac-d), scale var(--ef-gac-d); filter: brightness(0.5); scale: 0.8; }\n.ef-gac .ef-gac__card.is-active { filter: brightness(1); scale: 1.1; z-index: 10; }\n.ef-gac .ef-gac__img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }\n.ef-gac .ef-gac__content { position: relative; z-index: 20; box-sizing: border-box; max-width: 500px; padding: 0 1rem; display: flex; flex-direction: column; gap: 10px; text-align: center; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45); }\n.ef-gac .ef-gac__title { margin: 0; font: 700 calc(2rem * max(var(--ef-gac-k), 0.78))/1.5 \"Parkinsans\", \"Space Grotesk\", sans-serif; letter-spacing: -0.01em; color: var(--ef-gac-ink); opacity: 1; }\n.ef-gac .ef-gac__text { margin: 0; font-size: calc(1rem * max(var(--ef-gac-k), 0.88)); line-height: 1.6; color: var(--ef-gac-ink); opacity: 1; }\n.ef-gac .ef-gac__nav { display: flex; justify-content: center; gap: 20px; margin: 20px 0 30px; }\n.ef-gac .ef-gac__btn { display: grid; place-items: center; width: 50px; height: 50px; margin: 0; padding: 0; border: 1px solid var(--ef-gac-ink); border-radius: 50%; background: transparent; color: var(--ef-gac-ink); cursor: pointer; transition: background-color 0.2s ease, opacity 0.2s ease; }\n.ef-gac .ef-gac__btn:hover { background: color-mix(in srgb, var(--ef-gac-ink) 14%, transparent); }\n.ef-gac .ef-gac__btn:focus-visible { outline: 3px solid var(--ef-gac-acc); outline-offset: 3px; }\n.ef-gac .ef-gac__btn[aria-disabled=\"true\"] { opacity: 0.4; cursor: default; }\n.ef-gac .ef-gac__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }\n.ef-gac .ef-gac__live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }",
    "js": "// Enrichr Library · https://enrichr.dev\n// Gather arc carousel: photo cards hang from one far-away pivot, 750 px below the top of the cards, so turning each card by\n// 22 degrees per step from the current one spreads them on a wide arc that falls away to both sides. The current card is\n// lit and scaled up to 1.1 around that same pivot, which lifts it above the rest; the others are dimmed to half brightness\n// and scaled to 0.8. Moving is a CSS transition: 0.8 s on a cubic-bezier(0.2, 0.8, 0.2, 1) curve for the turn, and the\n// default ease for the light and the size. A title, a line of text and two round arrow buttons sit over the bottom of the\n// lit card. The arc has two ends (no loop). The arrow buttons, the left and right arrow keys, Home and End, the mouse wheel\n// (one step per 600 ms, and the page scrolls on once you reach an end) and a sideways swipe all move it; the new photo is\n// announced. Everything scales down with the box. Reduced motion: cards jump to their new places without a transition.\n// mount(root, { title, text, angle (deg between cards), radius (px from cards to the pivot), duration (ms), wheel (\"on\"|\"off\"),\n//               centre, glow, edge (the three colours of the radial background), accent })\nfunction mount(root, o) {\n  var reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n  var box = root.querySelector(\".ef-gac\");\n  var stage = root.querySelector(\".ef-gac__stage\");\n  var cards = [].slice.call(root.querySelectorAll(\".ef-gac__card\"));\n  var title = root.querySelector(\".ef-gac__title\"), text = root.querySelector(\".ef-gac__text\");\n  var prev = root.querySelector(\".ef-gac__prev\"), next = root.querySelector(\".ef-gac__next\");\n  var live = root.querySelector(\".ef-gac__live\");\n  var n = Math.max(1, cards.length), cur = Math.floor(cards.length / 2);\n  var opts = {}, k = 1, lastWheel = 0, drag = null, ro = null, offs = [], destroyed = false;\n\n  function num(v, d) { v = Number(v); return isFinite(v) ? v : d; }\n  function layout() {\n    cards.forEach(function (card, i) {\n      card.style.transform = \"rotate(\" + ((i - cur) * opts.angle) + \"deg)\";\n      card.classList.toggle(\"is-active\", i === cur);\n      card.setAttribute(\"role\", \"group\");\n      card.setAttribute(\"aria-roledescription\", \"slide\");\n      card.setAttribute(\"aria-label\", (i + 1) + \" of \" + n);\n      if (i === cur) card.removeAttribute(\"aria-hidden\"); else card.setAttribute(\"aria-hidden\", \"true\");\n    });\n    prev.setAttribute(\"aria-disabled\", cur <= 0 ? \"true\" : \"false\");\n    next.setAttribute(\"aria-disabled\", cur >= n - 1 ? \"true\" : \"false\");\n  }\n  function go(i) {\n    if (i < 0 || i >= n || i === cur) return false;\n    cur = i;\n    layout();\n    var img = cards[cur].querySelector(\"img\");\n    live.textContent = \"Photo \" + (cur + 1) + \" of \" + n + (img && img.alt ? \": \" + img.alt : \"\");\n    return true;\n  }\n  function move(dir) { return go(cur + dir); }\n\n  function size() {\n    var W = Math.max(1, box.clientWidth), H = Math.max(1, box.clientHeight);\n    // the pen is laid out for a 720 px tall window; smaller boxes get the same picture, scaled down\n    k = Math.max(0.5, Math.min(1, H / 720, W / 700));\n    box.style.setProperty(\"--ef-gac-k\", k.toFixed(4));\n    box.style.setProperty(\"--ef-gac-cw\", (200 * k).toFixed(2) + \"px\");\n    box.style.setProperty(\"--ef-gac-ch\", (300 * k).toFixed(2) + \"px\");\n    box.style.setProperty(\"--ef-gac-r\", (opts.radius * k).toFixed(2) + \"px\");\n  }\n\n  function onKey(e) {\n    var key = e.key;\n    if (key === \"ArrowRight\") { e.preventDefault(); move(1); }\n    else if (key === \"ArrowLeft\") { e.preventDefault(); move(-1); }\n    else if (key === \"Home\") { e.preventDefault(); go(0); }\n    else if (key === \"End\") { e.preventDefault(); go(n - 1); }\n  }\n  function onWheel(e) {\n    if (opts.wheel !== \"on\") return;\n    var d = Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;\n    if (!d) return;\n    var dir = d > 0 ? 1 : -1;\n    if (cur + dir < 0 || cur + dir >= n) return; // at an end: let the page scroll on\n    e.preventDefault();\n    if (Date.now() - lastWheel < 600) return;\n    lastWheel = Date.now();\n    move(dir);\n  }\n  function down(e) { if (e.button !== undefined && e.button !== 0) return; if (e.target.closest && e.target.closest(\"button\")) return; drag = { x: e.clientX, id: e.pointerId }; }\n  function up(e) {\n    if (!drag || e.pointerId !== drag.id) return;\n    var dx = e.clientX - drag.x; drag = null;\n    if (Math.abs(dx) > 40) move(dx < 0 ? 1 : -1);\n  }\n  function cancel() { drag = null; }\n  function onPrev() { move(-1); }\n  function onNext() { move(1); }\n  box.addEventListener(\"keydown\", onKey);\n  box.addEventListener(\"wheel\", onWheel, { passive: false });\n  stage.addEventListener(\"pointerdown\", down);\n  stage.addEventListener(\"pointerup\", up);\n  stage.addEventListener(\"pointercancel\", cancel);\n  prev.addEventListener(\"click\", onPrev);\n  next.addEventListener(\"click\", onNext);\n  offs.push(function () {\n    box.removeEventListener(\"keydown\", onKey); box.removeEventListener(\"wheel\", onWheel, { passive: false });\n    stage.removeEventListener(\"pointerdown\", down); stage.removeEventListener(\"pointerup\", up); stage.removeEventListener(\"pointercancel\", cancel);\n    prev.removeEventListener(\"click\", onPrev); next.removeEventListener(\"click\", onNext);\n  });\n\n  function update(partial) {\n    opts = Object.assign({ title: \"Gather here\", text: \"Seven corgis on one arc. Use the arrows, the arrow keys or the mouse wheel to bring the next one forward.\", angle: 22, radius: 750, duration: 800, wheel: \"on\", centre: \"#0c1e18\", glow: \"#1a7a4c\", edge: \"#050d0a\", accent: \"#e6ff55\" }, opts, partial || {});\n    opts.angle = num(opts.angle, 22); opts.radius = Math.max(100, num(opts.radius, 750)); opts.duration = Math.max(0, num(opts.duration, 800));\n    title.textContent = String(opts.title);\n    text.textContent = String(opts.text);\n    title.hidden = !String(opts.title).trim();\n    text.hidden = !String(opts.text).trim();\n    box.style.setProperty(\"--ef-gac-c1\", opts.centre);\n    box.style.setProperty(\"--ef-gac-c2\", opts.glow);\n    box.style.setProperty(\"--ef-gac-c3\", opts.edge);\n    box.style.setProperty(\"--ef-gac-acc\", opts.accent);\n    box.style.setProperty(\"--ef-gac-d\", (reduce ? 0 : opts.duration) + \"ms\");\n    if (destroyed) return;\n    layout(); // before size(): on mount the cards take their places before the first style pass, so nothing sweeps in\n    size();\n  }\n\n  update(o);\n  if (\"ResizeObserver\" in window) { ro = new ResizeObserver(function () { if (!destroyed) size(); }); ro.observe(box); }\n  return {\n    update: update,\n    destroy: function () {\n      destroyed = true;\n      offs.forEach(function (f) { f(); }); offs = [];\n      if (ro) ro.disconnect();\n    }\n  };\n}"
  }
}