{
  "id": "continuous-section-slides",
  "kind": "element",
  "title": "Continuous section slides",
  "summary": "Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.",
  "url": "https://enrichr.dev/elements/continuous-section-slides.html",
  "section": "page",
  "techniques": [
    "scroll-driven",
    "reveal"
  ],
  "stack": [
    "Vanilla JS",
    "CSS"
  ],
  "frameworks": [
    "React",
    "Next.js",
    "Vanilla"
  ],
  "mood": [
    "cinematic",
    "bold",
    "immersive"
  ],
  "intents": [
    "fullpage section slider",
    "one section per scroll",
    "wheel and swipe section transitions",
    "observer style scroll hijack sections",
    "clip path section wipe",
    "scroll snapping slides with progress indicator"
  ],
  "status": "tested",
  "params": [
    {
      "key": "accent",
      "label": "Accent colour",
      "type": "color",
      "value": "#e6ff55"
    },
    {
      "key": "sections",
      "label": "Sections",
      "type": "range",
      "min": 3,
      "max": 6,
      "step": 1,
      "value": 4
    },
    {
      "key": "duration",
      "label": "Transition (ms)",
      "type": "range",
      "min": 300,
      "max": 1800,
      "step": 50,
      "value": 900
    },
    {
      "key": "parallax",
      "label": "Content parallax",
      "type": "range",
      "min": 0,
      "max": 1,
      "step": 0.05,
      "value": 0.5
    },
    {
      "key": "sensitivity",
      "label": "Wheel sensitivity (px)",
      "type": "range",
      "min": 10,
      "max": 120,
      "step": 5,
      "value": 40
    }
  ],
  "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 \"Continuous section slides\" element to this project.\n\nThis is the \"Continuous section slides\" element from the Enrichr Library: Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.\nPage: https://enrichr.dev/elements/continuous-section-slides.html\nMachine-readable spec: https://enrichr.dev/elements/continuous-section-slides.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/continuous-section-slides.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 \"Continuous section slides\" 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 \"Continuous section slides\" element from the Enrichr Library: Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.\nPage: https://enrichr.dev/elements/continuous-section-slides.html\nMachine-readable spec: https://enrichr.dev/elements/continuous-section-slides.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 \"Continuous section slides\" element to this codebase.\n\nThis is the \"Continuous section slides\" element from the Enrichr Library: Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.\nPage: https://enrichr.dev/elements/continuous-section-slides.html\nMachine-readable spec: https://enrichr.dev/elements/continuous-section-slides.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-continuous-section-slides.mdc so the rule stays with the project:\n---\ndescription: How to use the Enrichr Continuous section slides 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 \"Continuous section slides\" element. Tailwind is available but this component needs no utility classes.\n\nThis is the \"Continuous section slides\" element from the Enrichr Library: Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.\nPage: https://enrichr.dev/elements/continuous-section-slides.html\nMachine-readable spec: https://enrichr.dev/elements/continuous-section-slides.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- continuous-section-slides.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 \"./continuous-section-slides\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function ContinuousSectionSlides(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 \"Continuous section slides\" element to this React + Vite + TypeScript + Tailwind project. Do not install any packages.\n\nThis is the \"Continuous section slides\" element from the Enrichr Library: Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.\nPage: https://enrichr.dev/elements/continuous-section-slides.html\nMachine-readable spec: https://enrichr.dev/elements/continuous-section-slides.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- continuous-section-slides.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/ContinuousSectionSlides.tsx):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./continuous-section-slides\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function ContinuousSectionSlides(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 \"Continuous section slides\" element.\n\nThis is the \"Continuous section slides\" element from the Enrichr Library: Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.\nPage: https://enrichr.dev/elements/continuous-section-slides.html\nMachine-readable spec: https://enrichr.dev/elements/continuous-section-slides.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), continuous-section-slides.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 \"Continuous section slides\" element. No packages, no server code.\n\nThis is the \"Continuous section slides\" element from the Enrichr Library: Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.\nPage: https://enrichr.dev/elements/continuous-section-slides.html\nMachine-readable spec: https://enrichr.dev/elements/continuous-section-slides.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 continuous-section-slides.js and then main.js), style.css (the CSS below), continuous-section-slides.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 \"Continuous section slides\" 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 \"Continuous section slides\" element from the Enrichr Library: Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.\nPage: https://enrichr.dev/elements/continuous-section-slides.html\nMachine-readable spec: https://enrichr.dev/elements/continuous-section-slides.json\n\nWhat it does: Every section is stacked in the same box and only the current one is visible. Input is gathered in one place, in the style of a GSAP Observer: wheel deltas are summed until they pass a threshold, a touch or pen swipe counts once it travels far enough, and the arrow, page, home and end keys jump directly. A busy flag and a short cool-down after each change ignore the rest of a trackpad flick, so one gesture moves one section. To change section, the incoming one is placed on top with a clip-path inset that hides it from the bottom edge or the top edge depending on direction, then transitioned to fully open. At the same time the content of the incoming section slides in from an offset while the outgoing content slides the other way. A fill bar, a counter and dot buttons follow the current index. The wheel listener sits on the element itself, so the page scrolls normally elsewhere, and at the first and last section the wheel is released so the page can scroll on.\nAccessibility: The element is a focusable group; the arrow, page, home and end keys change section and the dots are real buttons with labels. The counter is an aria-live region and inactive sections are hidden from assistive technology. With prefers-reduced-motion sections swap instantly with no wipe or parallax. On touch screens vertical swipes are used by the slider while the pointer is on it, so place it where that is acceptable and give users another route past it.\n\nTunable settings:\n- Accent colour: color, default #e6ff55\n- Sections: range 3 to 6, step 1, default 4\n- Transition (ms): range 300 to 1800, step 50, default 900\n- Content parallax: range 0 to 1, step 0.05, default 0.5\n- Wheel sensitivity (px): range 10 to 120, step 5, default 40\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/continuous-section-slides.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 \"Continuous section slides\" 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 \"Continuous section slides\" element from the Enrichr Library: Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.\nPage: https://enrichr.dev/elements/continuous-section-slides.html\nMachine-readable spec: https://enrichr.dev/elements/continuous-section-slides.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 ContinuousSectionSlides.\n2. Paste the JavaScript below into a separate code file named continuous-section-slides.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 \"./continuous-section-slides\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function ContinuousSectionSlides(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(ContinuousSectionSlides, {\n  accent: { type: ControlType.Color, title: \"Accent colour\", defaultValue: \"#e6ff55\" },\n  sections: { type: ControlType.Number, title: \"Sections\", min: 3, max: 6, step: 1, defaultValue: 4 },\n  duration: { type: ControlType.Number, title: \"Transition\", min: 300, max: 1800, step: 50, defaultValue: 900 },\n  parallax: { type: ControlType.Number, title: \"Content parallax\", min: 0, max: 1, step: 0.05, defaultValue: 0.5 },\n  sensitivity: { type: ControlType.Number, title: \"Wheel sensitivity\", min: 10, max: 120, step: 5, defaultValue: 40 },\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 \"Continuous section slides\" 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 \"Continuous section slides\" element from the Enrichr Library: Full-height sections that change one at a time on wheel, swipe or arrow keys, with a clip-path wipe, parallax content and a progress bar.\nPage: https://enrichr.dev/elements/continuous-section-slides.html\nMachine-readable spec: https://enrichr.dev/elements/continuous-section-slides.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-continuous-section-slides\"></div>, and a <script> block with the JavaScript followed by:\n   mount(document.getElementById(\"enrichr-continuous-section-slides\"), { ...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 element is a focusable group; the arrow, page, home and end keys change section and the dots are real buttons with labels. The counter is an aria-live region and inactive sections are hidden from assistive technology. With prefers-reduced-motion sections swap instantly with no wipe or parallax. On touch screens vertical swipes are used by the slider while the pointer is on it, so place it where that is acceptable and give users another route past it.",
  "performance": "Only clip-path and transform are animated, on at most two sections at once, and the transition styles are removed when it ends. There is no scroll listener and no rAF loop; the wheel handler only does arithmetic. Avoid heavy filters on section backgrounds.",
  "dependencies": [],
  "source": {
    "markup": "<div class=\"ef-css\">\n  <div class=\"ef-css__wrap\" tabindex=\"0\" role=\"group\" aria-roledescription=\"slides\" aria-label=\"Sections. Scroll, swipe or use the arrow keys to change section.\">\n    <div class=\"ef-css__stage\"></div>\n    <div class=\"ef-css__ui\">\n      <span class=\"ef-css__cnt\" aria-live=\"polite\"></span>\n      <span class=\"ef-css__dots\"></span>\n    </div>\n    <span class=\"ef-css__bar\" aria-hidden=\"true\"><span class=\"ef-css__fill\"></span></span>\n    <span class=\"ef-css__hint\" aria-hidden=\"true\">Scroll, swipe or use arrow keys</span>\n  </div>\n</div>",
    "css": "/* Enrichr Library · https://enrichr.dev */\n.ef-css { width: 100%; }\n.ef-css__wrap { position: relative; box-sizing: border-box; width: 100%; height: 26rem; border-radius: 1rem; overflow: hidden; touch-action: pan-x; outline: none; color: #fbf8f1; font-family: system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif; }\n.ef-css__wrap:focus-visible { box-shadow: 0 0 0 2px var(--ef-acc, #e6ff55) inset; }\n.ef-css__stage { position: absolute; inset: 0; }\n.ef-css__sec { position: absolute; inset: 0; visibility: hidden; z-index: 1; will-change: clip-path; }\n.ef-css__sec.is-cur { visibility: visible; z-index: 2; }\n.ef-css__sec.is-in { visibility: visible; z-index: 3; }\n.ef-css__bg { position: absolute; inset: 0; }\n.ef-css__bg::after { content: \"\"; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), transparent 35%, rgba(0, 0, 0, 0.45)); }\n.ef-css__sec.is-lite .ef-css__bg::after { background: linear-gradient(180deg, transparent, transparent 60%, rgba(0, 30, 24, 0.12)); }\n.ef-css__in { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 2rem 4.2rem 2rem 2rem; will-change: transform; }\n.ef-css__num { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; opacity: 0.8; }\n.ef-css__t { margin: 0.5rem 0 0; font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }\n.ef-css__p { margin: 0.8rem 0 0; max-width: 26rem; font-size: 0.95rem; line-height: 1.5; opacity: 0.85; }\n.ef-css__ui { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }\n.ef-css__cnt { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; padding: 0.2rem 0.45rem; border-radius: 99px; background: rgba(12, 30, 24, 0.7); color: #fbf8f1; }\n.ef-css__dots { display: flex; flex-direction: column; gap: 0.15rem; }\n.ef-css__dot { box-sizing: border-box; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 50%; outline: none; }\n.ef-css__dot::before { content: \"\"; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: rgba(251, 248, 241, 0.9); box-shadow: 0 0 0 1.5px rgba(12, 30, 24, 0.6); transform: scale(0.7); opacity: 0.6; transition: transform 300ms, background 300ms, opacity 300ms; }\n.ef-css__dot[aria-current=\"true\"]::before { background: var(--ef-acc, #e6ff55); transform: scale(1.25); opacity: 1; }\n.ef-css__dot:focus-visible { box-shadow: 0 0 0 2px var(--ef-acc, #e6ff55); }\n.ef-css__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 5; background: rgba(12, 30, 24, 0.35); }\n.ef-css__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--ef-acc, #e6ff55); transform-origin: left center; transform: scaleX(0); transition: transform 500ms cubic-bezier(.77, 0, .18, 1); }\n.ef-css__hint { position: absolute; left: 2rem; bottom: 1rem; z-index: 5; font-size: 0.68rem; letter-spacing: 0.08em; padding: 0.2rem 0.55rem; border-radius: 99px; background: rgba(12, 30, 24, 0.7); color: #fbf8f1; pointer-events: none; }\n.ef-css__wrap.is-rm .ef-css__fill, .ef-css__wrap.is-rm .ef-css__dot::before { transition: none; }\n@media (prefers-reduced-motion: reduce) { .ef-css__fill, .ef-css__dot::before { transition: none; } }",
    "js": "// Enrichr Library · https://enrichr.dev\n// Continuous section slides: full-height sections that change one at a time on wheel, swipe or arrow keys (an observer-style input\n// layer with a lock while a transition runs). The incoming section is revealed with a clip-path wipe while the content of both\n// sections slides for a parallax feel. A fill bar, counter and dot buttons show progress. The wheel is captured only while the pointer\n// is over the element, and not at the first or last section, so the page can still scroll past. Reduced motion swaps sections instantly.\n// mount(root, { background, accent, sections (3-6), duration (ms), parallax (0-1), sensitivity (wheel px to trigger) })\nfunction mount(root, o) {\n  var reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n  var wrap = root.querySelector(\".ef-css__wrap\");\n  var stage = root.querySelector(\".ef-css__stage\");\n  var dotsEl = root.querySelector(\".ef-css__dots\");\n  var cnt = root.querySelector(\".ef-css__cnt\");\n  var fill = root.querySelector(\".ef-css__fill\");\n  var hint = root.querySelector(\".ef-css__hint\");\n  var opts = {}, secs = [], dots = [], cur = 0, busy = false, acc = 0, lockUntil = 0, startY = null;\n  var timer = 0, accT = 0, hintT = 0, offs = [];\n  var DATA = [[\"Arrive\", \"A quiet start. The first section sets the tone before anything moves.\"], [\"Gather\", \"Ideas land one at a time instead of all at once.\"], [\"Build\", \"Each wipe hands the stage to the next section.\"], [\"Refine\", \"Small passes, one section per gesture.\"], [\"Ship\", \"A clean finish with the whole path behind it.\"], [\"Repeat\", \"Go back up and it plays in reverse.\"]];\n\n  function bgFor(i, a) {\n    var d = \"#0c1e18\";\n    var p = i % 6;\n    if (p === 0) return [\"radial-gradient(circle at 78% 28%, \" + a + \" 0 14%, transparent 15%), linear-gradient(160deg, #005236, \" + d + \")\", false];\n    if (p === 1) return [\"linear-gradient(\" + a + \", \" + a + \")\", true];\n    if (p === 2) return [\"repeating-linear-gradient(120deg, #005236 0 16px, \" + d + \" 16px 32px)\", false];\n    if (p === 3) return [\"conic-gradient(from 210deg at 70% 60%, #005236, \" + a + \", #fbf8f1, #005236)\", false];\n    if (p === 4) return [\"radial-gradient(circle at 25% 70%, \" + a + \" 0 18%, transparent 19%), linear-gradient(200deg, #0a6b46, \" + d + \")\", false];\n    return [\"radial-gradient(circle, \" + d + \" 0 2.5px, transparent 3px) 0 0 / 18px 18px, linear-gradient(145deg, \" + a + \", #bfe03a)\", true];\n  }\n  function clearTimers() { clearTimeout(timer); clearTimeout(accT); clearTimeout(hintT); timer = accT = hintT = 0; }\n  function clear() { clearTimers(); busy = false; acc = 0; offs.forEach(function (f) { f(); }); offs = []; }\n\n  function show(i) {\n    secs.forEach(function (s, k) { s.setAttribute(\"aria-hidden\", k === i ? \"false\" : \"true\"); });\n    dots.forEach(function (d, k) { if (k === i) d.setAttribute(\"aria-current\", \"true\"); else d.removeAttribute(\"aria-current\"); });\n    cnt.textContent = String(i + 1).padStart(2, \"0\") + \" / \" + String(secs.length).padStart(2, \"0\");\n    fill.style.transform = \"scaleX(\" + ((i + 1) / secs.length).toFixed(4) + \")\";\n  }\n  function reset(s) {\n    s.classList.remove(\"is-cur\", \"is-in\");\n    s.style.clipPath = \"\"; s.style.transition = \"\";\n    var inner = s.firstChild.nextSibling;\n    inner.style.transform = \"\"; inner.style.transition = \"\";\n  }\n  function go(n) {\n    if (busy || n === cur || n < 0 || n >= secs.length) return false;\n    var out = secs[cur], inn = secs[n], dir = n > cur ? 1 : -1;\n    var oi = out.firstChild.nextSibling, ii = inn.firstChild.nextSibling;\n    var d = reduce ? 0 : opts.duration;\n    var prev = cur;\n    cur = n;\n    show(n);\n    wrap.classList.add(\"is-used\");\n    if (hint) hint.style.display = \"none\";\n    if (d === 0) {\n      reset(out); reset(inn); inn.classList.add(\"is-cur\");\n      lockUntil = performance.now() + 120;\n      return true;\n    }\n    busy = true;\n    var shift = opts.parallax * 35;\n    inn.style.transition = \"none\"; ii.style.transition = \"none\";\n    inn.style.clipPath = dir > 0 ? \"inset(100% 0% 0% 0%)\" : \"inset(0% 0% 100% 0%)\";\n    ii.style.transform = \"translateY(\" + (dir * shift) + \"%)\";\n    inn.classList.add(\"is-in\");\n    void inn.offsetWidth;\n    var tr = d + \"ms cubic-bezier(.77,0,.18,1)\";\n    inn.style.transition = \"clip-path \" + tr; ii.style.transition = \"transform \" + tr; oi.style.transition = \"transform \" + tr;\n    inn.style.clipPath = \"inset(0% 0% 0% 0%)\";\n    ii.style.transform = \"translateY(0%)\";\n    oi.style.transform = \"translateY(\" + (-dir * shift) + \"%)\";\n    timer = setTimeout(function () {\n      timer = 0;\n      reset(secs[prev]); reset(inn); inn.classList.add(\"is-cur\");\n      busy = false;\n      lockUntil = performance.now() + 220;\n    }, d + 40);\n    return true;\n  }\n\n  function build() {\n    clear();\n    stage.textContent = \"\"; dotsEl.textContent = \"\";\n    secs = []; dots = [];\n    cur = 0;\n    for (var i = 0; i < opts.sections; i++) (function (i) {\n      var s = document.createElement(\"div\");\n      s.className = \"ef-css__sec\";\n      var b = bgFor(i, opts.accent);\n      var bg = document.createElement(\"span\"); bg.className = \"ef-css__bg\"; bg.style.background = b[0];\n      var inner = document.createElement(\"div\"); inner.className = \"ef-css__in\";\n      var nm = document.createElement(\"span\"); nm.className = \"ef-css__num\"; nm.textContent = \"SECTION \" + String(i + 1).padStart(2, \"0\");\n      var t = document.createElement(\"h3\"); t.className = \"ef-css__t\"; t.textContent = DATA[i % DATA.length][0];\n      var p = document.createElement(\"p\"); p.className = \"ef-css__p\"; p.textContent = DATA[i % DATA.length][1];\n      inner.appendChild(nm); inner.appendChild(t); inner.appendChild(p);\n      if (b[1]) { s.classList.add(\"is-lite\"); s.style.color = \"#0c1e18\"; }\n      s.appendChild(bg); s.appendChild(inner);\n      stage.appendChild(s); secs.push(s);\n      var d = document.createElement(\"button\");\n      d.type = \"button\"; d.className = \"ef-css__dot\"; d.setAttribute(\"aria-label\", \"Go to section \" + (i + 1));\n      function ck() { go(i); }\n      d.addEventListener(\"click\", ck);\n      offs.push(function () { d.removeEventListener(\"click\", ck); });\n      dotsEl.appendChild(d); dots.push(d);\n    })(i);\n    secs[0].classList.add(\"is-cur\");\n    show(0);\n\n    function wheel(e) {\n      if (!e.deltaY) return;\n      var dir = e.deltaY > 0 ? 1 : -1, next = cur + dir;\n      if (next < 0 || next >= secs.length) return;\n      e.preventDefault();\n      if (busy || performance.now() < lockUntil) { acc = 0; return; }\n      acc += e.deltaY;\n      clearTimeout(accT);\n      accT = setTimeout(function () { acc = 0; }, 160);\n      if (Math.abs(acc) >= opts.sensitivity) { acc = 0; go(next); }\n    }\n    function pd(e) { if (e.pointerType === \"mouse\") return; startY = e.clientY; }\n    function pu(e) {\n      if (startY === null) return;\n      var dy = startY - e.clientY; startY = null;\n      if (Math.abs(dy) >= 40) go(cur + (dy > 0 ? 1 : -1));\n    }\n    function pc() { startY = null; }\n    function key(e) {\n      var k = e.key, to = -1;\n      if (k === \"ArrowDown\" || k === \"PageDown\" || k === \"ArrowRight\") to = cur + 1;\n      else if (k === \"ArrowUp\" || k === \"PageUp\" || k === \"ArrowLeft\") to = cur - 1;\n      else if (k === \"Home\") to = 0;\n      else if (k === \"End\") to = secs.length - 1;\n      if (to < 0 || to >= secs.length) return;\n      e.preventDefault();\n      go(to);\n    }\n    wrap.addEventListener(\"wheel\", wheel, { passive: false });\n    wrap.addEventListener(\"pointerdown\", pd);\n    wrap.addEventListener(\"pointerup\", pu);\n    wrap.addEventListener(\"pointercancel\", pc);\n    wrap.addEventListener(\"keydown\", key);\n    offs.push(function () {\n      wrap.removeEventListener(\"wheel\", wheel, { passive: false });\n      wrap.removeEventListener(\"pointerdown\", pd); wrap.removeEventListener(\"pointerup\", pu);\n      wrap.removeEventListener(\"pointercancel\", pc); wrap.removeEventListener(\"keydown\", key);\n    });\n  }\n  function update(next) {\n    var prev = opts;\n    opts = Object.assign({ background: \"#0c1e18\", accent: \"#e6ff55\", sections: 4, duration: 900, parallax: 0.5, sensitivity: 40 }, opts, next || {});\n    opts.sections = Math.max(3, Math.min(6, Math.round(opts.sections)));\n    opts.duration = Math.max(0, opts.duration);\n    opts.parallax = Math.max(0, Math.min(1, opts.parallax));\n    opts.sensitivity = Math.max(1, opts.sensitivity);\n    wrap.style.background = opts.background;\n    wrap.style.setProperty(\"--ef-acc\", opts.accent);\n    wrap.classList.toggle(\"is-rm\", reduce);\n    if (prev.sections !== opts.sections || prev.accent !== opts.accent) build();\n  }\n  update(o);\n  return { update: update, destroy: function () { clear(); } };\n}"
  }
}