{
  "id": "edge-fade-logo-strip",
  "kind": "element",
  "title": "Edge fade logo strip",
  "summary": "A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.",
  "url": "https://enrichr.dev/elements/edge-fade-logo-strip.html",
  "section": "band",
  "techniques": [
    "text-animation",
    "pointer-interaction"
  ],
  "stack": [
    "Vanilla JS",
    "CSS"
  ],
  "frameworks": [
    "React",
    "Next.js",
    "Vanilla"
  ],
  "mood": [
    "clean",
    "polished"
  ],
  "intents": [
    "as featured in logo strip",
    "logo marquee with faded edges",
    "client logo ticker",
    "trusted by logos scrolling band",
    "press logos strip light and dark"
  ],
  "status": "tested",
  "params": [
    {
      "key": "label",
      "label": "Label",
      "type": "text",
      "value": "Inside every capture"
    },
    {
      "key": "words",
      "label": "Word-marks (comma separated; on the fifth style the last word is set small)",
      "type": "text",
      "value": "Layout, Enrichr, Motion, Design tokens, shaders lab, Font Finder"
    },
    {
      "key": "theme",
      "label": "Version",
      "type": "select",
      "options": [
        [
          "both",
          "Light and dark"
        ],
        [
          "light",
          "Light"
        ],
        [
          "dark",
          "Dark"
        ]
      ],
      "value": "both"
    },
    {
      "key": "speed",
      "label": "Loop time (s, higher is slower)",
      "type": "range",
      "min": 8,
      "max": 90,
      "step": 1,
      "value": 40
    },
    {
      "key": "gap",
      "label": "Gap (rem)",
      "type": "range",
      "min": 1,
      "max": 10,
      "step": 0.5,
      "value": 5
    },
    {
      "key": "height",
      "label": "Mark height (px)",
      "type": "range",
      "min": 20,
      "max": 60,
      "step": 1,
      "value": 34
    },
    {
      "key": "dim",
      "label": "Resting opacity",
      "type": "range",
      "min": 0.2,
      "max": 1,
      "step": 0.05,
      "value": 0.55
    },
    {
      "key": "fade",
      "label": "Edge fade (px)",
      "type": "range",
      "min": 0,
      "max": 240,
      "step": 5,
      "value": 90
    },
    {
      "key": "lightBg",
      "label": "Light strip",
      "type": "color",
      "value": "#fbf8f1"
    },
    {
      "key": "lightInk",
      "label": "Light strip marks",
      "type": "color",
      "value": "#0c1e18"
    },
    {
      "key": "darkBg",
      "label": "Dark strip",
      "type": "color",
      "value": "#0c1e18"
    },
    {
      "key": "darkInk",
      "label": "Dark strip marks",
      "type": "color",
      "value": "#fbf8f1"
    },
    {
      "key": "background",
      "label": "Background",
      "type": "color",
      "value": "#fbf8f1"
    }
  ],
  "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 \"Edge fade logo strip\" element to this project.\n\nThis is the \"Edge fade logo strip\" element from the Enrichr Library: A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.\nPage: https://enrichr.dev/elements/edge-fade-logo-strip.html\nMachine-readable spec: https://enrichr.dev/elements/edge-fade-logo-strip.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/edge-fade-logo-strip.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 \"Edge fade logo strip\" 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 \"Edge fade logo strip\" element from the Enrichr Library: A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.\nPage: https://enrichr.dev/elements/edge-fade-logo-strip.html\nMachine-readable spec: https://enrichr.dev/elements/edge-fade-logo-strip.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 \"Edge fade logo strip\" element to this codebase.\n\nThis is the \"Edge fade logo strip\" element from the Enrichr Library: A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.\nPage: https://enrichr.dev/elements/edge-fade-logo-strip.html\nMachine-readable spec: https://enrichr.dev/elements/edge-fade-logo-strip.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-edge-fade-logo-strip.mdc so the rule stays with the project:\n---\ndescription: How to use the Enrichr Edge fade logo strip 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 \"Edge fade logo strip\" element. Tailwind is available but this component needs no utility classes.\n\nThis is the \"Edge fade logo strip\" element from the Enrichr Library: A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.\nPage: https://enrichr.dev/elements/edge-fade-logo-strip.html\nMachine-readable spec: https://enrichr.dev/elements/edge-fade-logo-strip.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- edge-fade-logo-strip.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 \"./edge-fade-logo-strip\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function EdgeFadeLogoStrip(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 \"Edge fade logo strip\" element to this React + Vite + TypeScript + Tailwind project. Do not install any packages.\n\nThis is the \"Edge fade logo strip\" element from the Enrichr Library: A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.\nPage: https://enrichr.dev/elements/edge-fade-logo-strip.html\nMachine-readable spec: https://enrichr.dev/elements/edge-fade-logo-strip.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- edge-fade-logo-strip.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/EdgeFadeLogoStrip.tsx):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./edge-fade-logo-strip\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function EdgeFadeLogoStrip(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 \"Edge fade logo strip\" element.\n\nThis is the \"Edge fade logo strip\" element from the Enrichr Library: A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.\nPage: https://enrichr.dev/elements/edge-fade-logo-strip.html\nMachine-readable spec: https://enrichr.dev/elements/edge-fade-logo-strip.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), edge-fade-logo-strip.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 \"Edge fade logo strip\" element. No packages, no server code.\n\nThis is the \"Edge fade logo strip\" element from the Enrichr Library: A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.\nPage: https://enrichr.dev/elements/edge-fade-logo-strip.html\nMachine-readable spec: https://enrichr.dev/elements/edge-fade-logo-strip.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 edge-fade-logo-strip.js and then main.js), style.css (the CSS below), edge-fade-logo-strip.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 \"Edge fade logo strip\" 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 \"Edge fade logo strip\" element from the Enrichr Library: A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.\nPage: https://enrichr.dev/elements/edge-fade-logo-strip.html\nMachine-readable spec: https://enrichr.dev/elements/edge-fade-logo-strip.json\n\nWhat it does: Each strip is a label and a track holding two identical groups of word-marks. The track slides by minus 50 percent of its width, exactly one group, every 40 seconds on a linear loop, so the end frame matches the start. Every word gets one of six type treatments in turn, like a row of press logos: a bold serif, the Enrichr puzzle mark beside bold sans, tight sans capitals, spaced serif capitals, lowercase with a small trailing word, and a boxed pair of initials. A CSS mask fades both ends to transparent over 90 pixels instead of cutting them off. Marks rest at 55 percent opacity (60 on the dark strip) and come up to full in a quarter of a second under the pointer, and the strip pauses while the pointer is on it or it has focus. If one group is narrower than the strip, the set repeats inside each group and the loop time grows to match, so the pace stays the same on wide screens.\nAccessibility: The label and the word-marks are read once, as a group label and a visually hidden list; the moving copies are hidden from screen readers. Each strip can take keyboard focus, which pauses it and shows a focus ring. With prefers-reduced-motion the strip stops, the edge fade goes, and the marks wrap onto centred rows.\n\nTunable settings:\n- Label: text, default Inside every capture\n- Word-marks (comma separated; on the fifth style the last word is set small): text, default Layout, Enrichr, Motion, Design tokens, shaders lab, Font Finder\n- Version: select (Light and dark / Light / Dark), default both\n- Loop time (s, higher is slower): range 8 to 90, step 1, default 40\n- Gap (rem): range 1 to 10, step 0.5, default 5\n- Mark height (px): range 20 to 60, step 1, default 34\n- Resting opacity: range 0.2 to 1, step 0.05, default 0.55\n- Edge fade (px): range 0 to 240, step 5, default 90\n- Light strip: color, default #fbf8f1\n- Light strip marks: color, default #0c1e18\n- Dark strip: color, default #0c1e18\n- Dark strip marks: color, default #fbf8f1\n- Background: color, default #fbf8f1\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/edge-fade-logo-strip.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 \"Edge fade logo strip\" 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 \"Edge fade logo strip\" element from the Enrichr Library: A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.\nPage: https://enrichr.dev/elements/edge-fade-logo-strip.html\nMachine-readable spec: https://enrichr.dev/elements/edge-fade-logo-strip.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 EdgeFadeLogoStrip.\n2. Paste the JavaScript below into a separate code file named edge-fade-logo-strip.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 \"./edge-fade-logo-strip\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function EdgeFadeLogoStrip(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(EdgeFadeLogoStrip, {\n  label: { type: ControlType.String, title: \"Label\", defaultValue: \"Inside every capture\" },\n  words: { type: ControlType.String, title: \"Word-marks (comma separated; on the fifth style the last word is set small)\", defaultValue: \"Layout, Enrichr, Motion, Design tokens, shaders lab, Font Finder\" },\n  theme: { type: ControlType.Enum, title: \"Version\", options: [\"both\",\"light\",\"dark\"], optionTitles: [\"Light and dark\",\"Light\",\"Dark\"], defaultValue: \"both\" },\n  speed: { type: ControlType.Number, title: \"Loop time\", min: 8, max: 90, step: 1, defaultValue: 40 },\n  gap: { type: ControlType.Number, title: \"Gap\", min: 1, max: 10, step: 0.5, defaultValue: 5 },\n  height: { type: ControlType.Number, title: \"Mark height\", min: 20, max: 60, step: 1, defaultValue: 34 },\n  dim: { type: ControlType.Number, title: \"Resting opacity\", min: 0.2, max: 1, step: 0.05, defaultValue: 0.55 },\n  fade: { type: ControlType.Number, title: \"Edge fade\", min: 0, max: 240, step: 5, defaultValue: 90 },\n  lightBg: { type: ControlType.Color, title: \"Light strip\", defaultValue: \"#fbf8f1\" },\n  lightInk: { type: ControlType.Color, title: \"Light strip marks\", defaultValue: \"#0c1e18\" },\n  darkBg: { type: ControlType.Color, title: \"Dark strip\", defaultValue: \"#0c1e18\" },\n  darkInk: { type: ControlType.Color, title: \"Dark strip marks\", defaultValue: \"#fbf8f1\" },\n  background: { type: ControlType.Color, title: \"Background\", defaultValue: \"#fbf8f1\" },\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 \"Edge fade logo strip\" 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 \"Edge fade logo strip\" element from the Enrichr Library: A small label over a row of word-marks that slides past endlessly and fades out at both edges, in a light and a dark version.\nPage: https://enrichr.dev/elements/edge-fade-logo-strip.html\nMachine-readable spec: https://enrichr.dev/elements/edge-fade-logo-strip.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-edge-fade-logo-strip\"></div>, and a <script> block with the JavaScript followed by:\n   mount(document.getElementById(\"enrichr-edge-fade-logo-strip\"), { ...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 label and the word-marks are read once, as a group label and a visually hidden list; the moving copies are hidden from screen readers. Each strip can take keyboard focus, which pauses it and shows a focus ring. With prefers-reduced-motion the strip stops, the edge fade goes, and the marks wrap onto centred rows.",
  "performance": "The loop is one Web Animation per strip that only moves transform, so it runs on the compositor with no JavaScript per frame. The marks are measured once, after web fonts load, and when the width changes by more than 24 pixels. Strips pause off screen through IntersectionObserver and in hidden tabs, and a strip that is switched off is not animated at all.",
  "dependencies": [],
  "codepen": "https://codepen.io/Enrichr-Dev/pen/GgWPBYX",
  "source": {
    "markup": "<div class=\"ef-efl\">\n  <div class=\"ef-efl__strip ef-efl__strip--light\" tabindex=\"0\" role=\"group\">\n    <p class=\"ef-efl__label\" aria-hidden=\"true\"></p>\n    <ul class=\"ef-efl__sr\"></ul>\n    <div class=\"ef-efl__track\" aria-hidden=\"true\"></div>\n  </div>\n  <div class=\"ef-efl__strip ef-efl__strip--dark\" tabindex=\"0\" role=\"group\">\n    <p class=\"ef-efl__label\" aria-hidden=\"true\"></p>\n    <ul class=\"ef-efl__sr\"></ul>\n    <div class=\"ef-efl__track\" aria-hidden=\"true\"></div>\n  </div>\n</div>",
    "css": "/* Enrichr Library · https://enrichr.dev */\n.ef-efl { --ef-efl-page: #fbf8f1; --ef-efl-light-bg: #fbf8f1; --ef-efl-light-ink: #0c1e18; --ef-efl-dark-bg: #0c1e18; --ef-efl-dark-ink: #fbf8f1; --ef-efl-gap: 5rem; --ef-efl-height: 34px; --ef-efl-k: 1; --ef-efl-dim: 0.55; --ef-efl-fade: 90px; position: relative; width: 100%; min-height: 20rem; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 60px; padding: 60px 0; overflow: hidden; border-radius: 1rem; background: var(--ef-efl-page); font-family: 'Parkinsans', 'Space Grotesk', sans-serif; }\n.ef-efl .ef-efl__strip { --ef-efl-ink: var(--ef-efl-light-ink); --ef-efl-bg: var(--ef-efl-light-bg); --ef-efl-d: var(--ef-efl-dim); position: relative; width: 100%; box-sizing: border-box; overflow: hidden; padding: 28px 0; background: var(--ef-efl-bg); border-top: 1px solid color-mix(in srgb, var(--ef-efl-ink) 10%, var(--ef-efl-bg)); border-bottom: 1px solid color-mix(in srgb, var(--ef-efl-ink) 10%, var(--ef-efl-bg)); outline: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--ef-efl-fade), #000 calc(100% - var(--ef-efl-fade)), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--ef-efl-fade), #000 calc(100% - var(--ef-efl-fade)), transparent 100%); }\n.ef-efl .ef-efl__strip--dark { --ef-efl-ink: var(--ef-efl-dark-ink); --ef-efl-bg: var(--ef-efl-dark-bg); --ef-efl-d: calc(var(--ef-efl-dim) + 0.05); border-color: color-mix(in srgb, var(--ef-efl-ink) 13%, var(--ef-efl-bg)); }\n.ef-efl .ef-efl__strip:focus-visible { box-shadow: inset 0 0 0 3px #e6ff55, inset 0 0 0 5px var(--ef-efl-bg); }\n.ef-efl.is-light .ef-efl__strip--dark, .ef-efl.is-dark .ef-efl__strip--light { display: none; }\n.ef-efl .ef-efl__label { display: block; margin: 0 0 22px; padding: 0 1rem; text-align: center; font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: 0.18em; text-transform: uppercase; color: color-mix(in srgb, var(--ef-efl-ink) 45%, var(--ef-efl-bg)); opacity: 1; }\n.ef-efl .ef-efl__strip--dark .ef-efl__label { color: color-mix(in srgb, var(--ef-efl-ink) 42%, var(--ef-efl-bg)); }\n.ef-efl .ef-efl__track { display: flex; width: max-content; will-change: transform; }\n.ef-efl .ef-efl__group { display: flex; flex: 0 0 auto; align-items: center; gap: var(--ef-efl-gap); padding-right: var(--ef-efl-gap); }\n.ef-efl .ef-efl__logo { display: flex; align-items: center; justify-content: center; height: var(--ef-efl-height); color: var(--ef-efl-ink); opacity: var(--ef-efl-d); white-space: nowrap; user-select: none; transition: opacity 0.25s ease; }\n.ef-efl .ef-efl__logo:hover { opacity: 1; }\n.ef-efl .ef-efl__wm { display: flex; align-items: center; line-height: 1; }\n.ef-efl .ef-efl__wm--serif { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: calc(30px * var(--ef-efl-k)); letter-spacing: -0.015em; }\n.ef-efl .ef-efl__wm--mark { font-weight: 700; font-size: calc(24px * var(--ef-efl-k)); letter-spacing: -0.01em; gap: calc(9px * var(--ef-efl-k)); }\n.ef-efl .ef-efl__mark { width: calc(24px * var(--ef-efl-k)); height: calc(24px * var(--ef-efl-k)); flex: 0 0 auto; }\n.ef-efl .ef-efl__wm--caps { font-weight: 700; font-size: calc(23px * var(--ef-efl-k)); letter-spacing: -0.03em; text-transform: uppercase; }\n.ef-efl .ef-efl__wm--serifcaps { font-family: Georgia, 'Times New Roman', serif; font-weight: 700; font-size: calc(21px * var(--ef-efl-k)); letter-spacing: 0.02em; text-transform: uppercase; }\n.ef-efl .ef-efl__wm--sub { font-weight: 700; font-size: calc(25px * var(--ef-efl-k)); letter-spacing: -0.035em; text-transform: lowercase; }\n.ef-efl .ef-efl__sub { margin-left: 7px; align-self: flex-end; padding-bottom: 2px; font-weight: 400; font-size: 0.62em; letter-spacing: 0.01em; }\n.ef-efl .ef-efl__wm--box { font-weight: 700; font-size: calc(23px * var(--ef-efl-k)); letter-spacing: -0.02em; gap: calc(7px * var(--ef-efl-k)); }\n.ef-efl .ef-efl__box { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(26px * var(--ef-efl-k)); height: calc(26px * var(--ef-efl-k)); border: 2.5px solid currentColor; font-size: calc(15px * var(--ef-efl-k)); letter-spacing: 0; flex: 0 0 auto; }\n.ef-efl .ef-efl__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; list-style: none; }\n.ef-efl.is-still .ef-efl__strip { -webkit-mask-image: none; mask-image: none; }\n.ef-efl.is-still .ef-efl__track { width: auto; justify-content: center; }\n.ef-efl.is-still .ef-efl__group { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: 2rem; padding: 0 1rem; }",
    "js": "// Enrichr Library · https://enrichr.dev\n// Edge fade logo strip: a small caps label over a row of typographic word-marks that slides past on an endless linear\n// loop, with both ends faded out by a mask instead of a hard cut. The marks rest dimmed and come up to full strength under\n// the pointer, and the whole strip pauses while the pointer is over it or it has keyboard focus. The row is two identical\n// groups and the track slides by exactly one group (50%) every 40 seconds, so the loop has no seam; on a wide screen each\n// group repeats its set and the loop time grows with it, so the pace stays the same. It comes in a light and a dark version.\n// The loop is a Web Animation on the compositor. Reduced motion stops it, drops the fade and wraps the marks centred.\n// It pauses off screen and in hidden tabs.\n// mount(root, { label, words (comma separated; \"main sub\" on the fifth style), theme (\"both\", \"light\" or \"dark\"),\n//               speed (s per loop), gap (rem), height (px), dim (resting opacity), fade (edge fade, px),\n//               lightBg, lightInk, darkBg, darkInk, background })\nfunction mount(root, o) {\n  var reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n  var box = root.querySelector(\".ef-efl\");\n  var MARK = '<path fill=\"currentColor\" d=\"m34.213 25.361 c0 2.655 1.381 4.808 3.086 4.808 0.781 0 1.494 -0.452 2.038 -1.198 0.267 -0.366 0.688 -0.589 1.142 -0.589 h0.054 c0.774 0 1.401 0.627 1.401 1.401 v10.65 h-10.651 c-0.774 0 -1.401 0.627 -1.401 1.401 v0.054 c0 0.453 0.222 0.874 0.589 1.141 0.746 0.544 1.198 1.257 1.198 2.038 0 1.705 -2.152 3.086 -4.808 3.086 -2.655 0 -4.808 -1.381 -4.808 -3.086 0 -0.781 0.452 -1.494 1.198 -2.038 0.366 -0.267 0.589 -0.688 0.589 -1.142 v-0.054 c0 -0.774 -0.627 -1.401 -1.401 -1.401 h-10.65 v-10.651 c0 -0.774 -0.627 -1.401 -1.401 -1.401 h-0.054 c-0.453 0 -0.875 0.222 -1.142 0.589 -0.543 0.746 -1.257 1.198 -2.038 1.198 -1.705 0 -3.086 -2.152 -3.086 -4.808 0 -2.655 1.381 -4.808 3.086 -4.808 0.781 0 1.495 0.452 2.038 1.198 0.267 0.366 0.688 0.589 1.141 0.589 h0.054 c0.774 0 1.401 -0.627 1.401 -1.401 v-10.65 h10.65 c0.774 0 1.401 -0.627 1.401 -1.401 v-0.054 c0 -0.453 -0.222 -0.875 -0.589 -1.142 -0.746 -0.543 -1.198 -1.257 -1.198 -2.038 0 -1.705 2.152 -3.086 4.808 -3.086 2.655 0 4.808 1.381 4.808 3.086 0 0.781 -0.452 1.495 -1.198 2.038 -0.366 0.267 -0.589 0.688 -0.589 1.141 v0.054 c0 0.774 0.627 1.401 1.401 1.401 h10.65 v10.65 c0 0.774 -0.627 1.401 -1.401 1.401 h-0.053 c-0.453 0 -0.874 -0.222 -1.141 -0.589 -0.544 -0.746 -1.257 -1.198 -2.038 -1.198 -1.705 0 -3.086 2.152 -3.086 4.808 z\"/>';\n  var STYLES = [\"serif\", \"mark\", \"caps\", \"serifcaps\", \"sub\", \"box\"]; // one per word, in turn, like the six press marks of the original\n  var strips = [].map.call(root.querySelectorAll(\".ef-efl__strip\"), function (el) {\n    return { el: el, label: el.querySelector(\".ef-efl__label\"), sr: el.querySelector(\".ef-efl__sr\"), track: el.querySelector(\".ef-efl__track\"), anim: null, dur: 0, k: 1, hover: false, focus: false, sig: \"\" };\n  });\n  var opts = {}, io = null, ro = null, visible = true, destroyed = false, lastW = 0, offs = [];\n\n  function num(v, d) { v = Number(v); return isFinite(v) ? v : d; }\n  function words() {\n    var w = String(opts.words).split(\",\").map(function (s) { return s.trim(); }).filter(Boolean).slice(0, 12);\n    return w.length ? w : [\"Enrichr\"];\n  }\n  function el(tag, cls, text) { var e = document.createElement(tag); if (cls) e.className = cls; if (text) e.textContent = text; return e; }\n  function initials(w) {\n    var p = w.split(/\\s+/).filter(Boolean);\n    return (p.length > 1 ? p[0].charAt(0) + p[1].charAt(0) : w.slice(0, 2)).toUpperCase();\n  }\n  function logo(w, i) {\n    var kind = STYLES[i % STYLES.length], slot = el(\"div\", \"ef-efl__logo\"), wm = el(\"span\", \"ef-efl__wm ef-efl__wm--\" + kind);\n    if (kind === \"mark\") {\n      var s = document.createElementNS(\"http://www.w3.org/2000/svg\", \"svg\");\n      s.setAttribute(\"viewBox\", \"0 0 50 50\"); s.setAttribute(\"class\", \"ef-efl__mark\"); s.setAttribute(\"aria-hidden\", \"true\"); s.setAttribute(\"focusable\", \"false\");\n      s.innerHTML = MARK;\n      wm.appendChild(s); wm.appendChild(document.createTextNode(w));\n    } else if (kind === \"sub\") {\n      var k = w.lastIndexOf(\" \");\n      wm.appendChild(document.createTextNode(k > 0 ? w.slice(0, k) : w));\n      if (k > 0) wm.appendChild(el(\"span\", \"ef-efl__sub\", w.slice(k + 1)));\n    } else if (kind === \"box\") {\n      wm.appendChild(el(\"span\", \"ef-efl__box\", initials(w)));\n      wm.appendChild(document.createTextNode(w));\n    } else wm.textContent = w;\n    slot.appendChild(wm);\n    return slot;\n  }\n  function groupOf(list, sets) {\n    var g = el(\"div\", \"ef-efl__group\");\n    for (var s = 0; s < sets; s++) list.forEach(function (w, i) { g.appendChild(logo(w, i)); });\n    return g;\n  }\n  function paused(st) { return !visible || st.hover || st.focus || document.hidden; }\n  function sync() { strips.forEach(function (st) { if (st.anim) { if (paused(st)) st.anim.pause(); else st.anim.play(); } }); }\n\n  // Restart one strip's loop at its current place, so live changes never jump.\n  function play(st, sec) {\n    if (reduce || !st.track.animate) return;\n    var dur = Math.max(1, sec) * 1000, p = 0;\n    if (st.anim) { p = st.dur ? ((Number(st.anim.currentTime) || 0) % st.dur) / st.dur : 0; st.anim.cancel(); }\n    st.anim = st.track.animate([{ transform: \"translate3d(0,0,0)\" }, { transform: \"translate3d(-50%,0,0)\" }], { duration: dur, iterations: Infinity, easing: \"linear\" });\n    st.anim.currentTime = p * dur;\n    st.dur = dur;\n    if (paused(st)) st.anim.pause();\n  }\n  // One group must be at least as wide as the strip; repeat the set inside it until it is.\n  function build(st) {\n    var list = words();\n    st.label.textContent = opts.label;\n    st.el.setAttribute(\"aria-label\", (opts.label ? opts.label + \". \" : \"\") + \"Focus to pause the strip.\");\n    st.sr.textContent = \"\";\n    list.forEach(function (w) { st.sr.appendChild(el(\"li\", \"\", w)); });\n    st.track.textContent = \"\";\n    var probe = groupOf(list, 1);\n    st.track.appendChild(probe);\n    var one = probe.getBoundingClientRect().width || 600;\n    st.k = reduce ? 1 : Math.max(1, Math.ceil((box.clientWidth || 800) / one));\n    st.track.textContent = \"\";\n    st.track.appendChild(groupOf(list, st.k));\n    if (!reduce) st.track.appendChild(groupOf(list, st.k)); // the exact duplicate that makes the loop seamless\n    st.sig = list.join(\",\") + \"|\" + opts.label + \"|\" + opts.gap + \"|\" + opts.height;\n  }\n  function visibleStrips() { return strips.filter(function (st, i) { return opts.theme === \"both\" || (opts.theme === \"light\") === (i === 0); }); }\n\n  function update(partial) {\n    opts = Object.assign({\n      label: \"Inside every capture\", words: \"Layout, Enrichr, Motion, Design tokens, shaders lab, Font Finder\", theme: \"both\",\n      speed: 40, gap: 5, height: 34, dim: 0.55, fade: 90,\n      lightBg: \"#fbf8f1\", lightInk: \"#0c1e18\", darkBg: \"#0c1e18\", darkInk: \"#fbf8f1\", background: \"#fbf8f1\"\n    }, opts, partial || {});\n    opts.speed = Math.max(1, num(opts.speed, 40)); opts.gap = Math.max(0, num(opts.gap, 5)); opts.height = Math.max(10, num(opts.height, 34));\n    opts.dim = Math.min(1, Math.max(0, num(opts.dim, 0.55))); opts.fade = Math.max(0, num(opts.fade, 90));\n    if ([\"both\", \"light\", \"dark\"].indexOf(opts.theme) < 0) opts.theme = \"both\";\n    var s = box.style;\n    s.setProperty(\"--ef-efl-page\", opts.background);\n    s.setProperty(\"--ef-efl-light-bg\", opts.lightBg); s.setProperty(\"--ef-efl-light-ink\", opts.lightInk);\n    s.setProperty(\"--ef-efl-dark-bg\", opts.darkBg); s.setProperty(\"--ef-efl-dark-ink\", opts.darkInk);\n    s.setProperty(\"--ef-efl-gap\", opts.gap + \"rem\"); s.setProperty(\"--ef-efl-height\", opts.height + \"px\");\n    s.setProperty(\"--ef-efl-k\", String(opts.height / 34)); s.setProperty(\"--ef-efl-dim\", String(opts.dim));\n    s.setProperty(\"--ef-efl-fade\", opts.fade + \"px\");\n    box.classList.toggle(\"is-light\", opts.theme === \"light\");\n    box.classList.toggle(\"is-dark\", opts.theme === \"dark\");\n    box.classList.toggle(\"is-still\", reduce);\n    if (destroyed) return;\n    strips.forEach(function (st) { if (visibleStrips().indexOf(st) < 0) { if (st.anim) st.anim.cancel(); st.anim = null; st.sig = \"\"; } });\n    visibleStrips().forEach(function (st) {\n      if (st.sig !== words().join(\",\") + \"|\" + opts.label + \"|\" + opts.gap + \"|\" + opts.height) build(st);\n      play(st, opts.speed * st.k);\n    });\n    lastW = box.clientWidth;\n  }\n  function refit() { if (destroyed) return; visibleStrips().forEach(function (st) { build(st); play(st, opts.speed * st.k); }); lastW = box.clientWidth; }\n\n  strips.forEach(function (st) {\n    function enter() { st.hover = true; sync(); }\n    function leave() { st.hover = false; sync(); }\n    function fin() { st.focus = true; sync(); }\n    function fout() { st.focus = st.el.contains(document.activeElement); sync(); }\n    st.el.addEventListener(\"pointerenter\", enter); st.el.addEventListener(\"pointerleave\", leave);\n    st.el.addEventListener(\"focusin\", fin); st.el.addEventListener(\"focusout\", fout);\n    offs.push(function () {\n      st.el.removeEventListener(\"pointerenter\", enter); st.el.removeEventListener(\"pointerleave\", leave);\n      st.el.removeEventListener(\"focusin\", fin); st.el.removeEventListener(\"focusout\", fout);\n    });\n  });\n  function onVis() { sync(); }\n  document.addEventListener(\"visibilitychange\", onVis);\n\n  update(o);\n  if (\"IntersectionObserver\" in window) { io = new IntersectionObserver(function (e) { visible = e[0].isIntersecting; sync(); }); io.observe(box); }\n  if (\"ResizeObserver\" in window) { ro = new ResizeObserver(function () { if (Math.abs(box.clientWidth - lastW) > 24) refit(); }); ro.observe(box); }\n  if (document.fonts && document.fonts.ready) document.fonts.ready.then(function () { refit(); });\n  return {\n    update: update,\n    destroy: function () {\n      destroyed = true;\n      strips.forEach(function (st) { if (st.anim) st.anim.cancel(); st.anim = null; });\n      offs.forEach(function (f) { f(); }); offs = [];\n      document.removeEventListener(\"visibilitychange\", onVis);\n      if (io) io.disconnect();\n      if (ro) ro.disconnect();\n    }\n  };\n}"
  }
}