{
  "id": "css-button-hover-set",
  "kind": "element",
  "title": "CSS button hover set",
  "summary": "Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.",
  "url": "https://enrichr.dev/elements/css-button-hover-set.html",
  "section": "band",
  "techniques": [
    "pointer-interaction"
  ],
  "stack": [
    "Vanilla JS",
    "CSS"
  ],
  "frameworks": [
    "React",
    "Next.js",
    "Vanilla"
  ],
  "mood": [
    "modern",
    "polished",
    "playful"
  ],
  "intents": [
    "css button hover animation",
    "button hover effects collection",
    "animated border draw button",
    "shine sweep button",
    "arrow slide cta hover"
  ],
  "status": "tested",
  "params": [
    {
      "key": "accent",
      "label": "Accent colour",
      "type": "color",
      "value": "#e6ff55"
    },
    {
      "key": "speed",
      "label": "Speed (ms)",
      "type": "range",
      "min": 150,
      "max": 1000,
      "step": 25,
      "value": 450
    },
    {
      "key": "radius",
      "label": "Corner radius (rem)",
      "type": "range",
      "min": 0,
      "max": 2,
      "step": 0.1,
      "value": 0.7
    },
    {
      "key": "size",
      "label": "Text size (rem)",
      "type": "range",
      "min": 0.8,
      "max": 1.4,
      "step": 0.05,
      "value": 1
    }
  ],
  "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 \"CSS button hover set\" element to this project.\n\nThis is the \"CSS button hover set\" element from the Enrichr Library: Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.\nPage: https://enrichr.dev/elements/css-button-hover-set.html\nMachine-readable spec: https://enrichr.dev/elements/css-button-hover-set.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/css-button-hover-set.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 \"CSS button hover set\" 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 \"CSS button hover set\" element from the Enrichr Library: Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.\nPage: https://enrichr.dev/elements/css-button-hover-set.html\nMachine-readable spec: https://enrichr.dev/elements/css-button-hover-set.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 \"CSS button hover set\" element to this codebase.\n\nThis is the \"CSS button hover set\" element from the Enrichr Library: Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.\nPage: https://enrichr.dev/elements/css-button-hover-set.html\nMachine-readable spec: https://enrichr.dev/elements/css-button-hover-set.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-css-button-hover-set.mdc so the rule stays with the project:\n---\ndescription: How to use the Enrichr CSS button hover set 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 \"CSS button hover set\" element. Tailwind is available but this component needs no utility classes.\n\nThis is the \"CSS button hover set\" element from the Enrichr Library: Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.\nPage: https://enrichr.dev/elements/css-button-hover-set.html\nMachine-readable spec: https://enrichr.dev/elements/css-button-hover-set.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- css-button-hover-set.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 \"./css-button-hover-set\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function CssButtonHoverSet(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 \"CSS button hover set\" element to this React + Vite + TypeScript + Tailwind project. Do not install any packages.\n\nThis is the \"CSS button hover set\" element from the Enrichr Library: Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.\nPage: https://enrichr.dev/elements/css-button-hover-set.html\nMachine-readable spec: https://enrichr.dev/elements/css-button-hover-set.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- css-button-hover-set.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/CssButtonHoverSet.tsx):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./css-button-hover-set\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function CssButtonHoverSet(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 \"CSS button hover set\" element.\n\nThis is the \"CSS button hover set\" element from the Enrichr Library: Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.\nPage: https://enrichr.dev/elements/css-button-hover-set.html\nMachine-readable spec: https://enrichr.dev/elements/css-button-hover-set.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), css-button-hover-set.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 \"CSS button hover set\" element. No packages, no server code.\n\nThis is the \"CSS button hover set\" element from the Enrichr Library: Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.\nPage: https://enrichr.dev/elements/css-button-hover-set.html\nMachine-readable spec: https://enrichr.dev/elements/css-button-hover-set.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 css-button-hover-set.js and then main.js), style.css (the CSS below), css-button-hover-set.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 \"CSS button hover set\" 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 \"CSS button hover set\" element from the Enrichr Library: Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.\nPage: https://enrichr.dev/elements/css-button-hover-set.html\nMachine-readable spec: https://enrichr.dev/elements/css-button-hover-set.json\n\nWhat it does: Each button is a normal element with a modifier class, and every effect is a transition on a pseudo-element or background. Fill sweep slides a ::before layer in, border draw grows four background-size strips in sequence, shine moves a skewed gradient across, split text reveals a duplicate label with clip-path using a data attribute, ripple scales a large circle from the centre, and arrow slide widens an inline SVG from zero. The script only writes the accent, duration, radius and size as CSS variables.\nAccessibility: All six are native buttons and every effect also triggers on :focus-visible, with a clear focus ring, so keyboard users see the same state. Hover states keep text legible by switching to dark ink when the fill arrives. With prefers-reduced-motion the transitions collapse to an instant state change.\n\nTunable settings:\n- Accent colour: color, default #e6ff55\n- Speed (ms): range 150 to 1000, step 25, default 450\n- Corner radius (rem): range 0 to 2, step 0.1, default 0.7\n- Text size (rem): range 0.8 to 1.4, step 0.05, default 1\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/css-button-hover-set.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 \"CSS button hover set\" 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 \"CSS button hover set\" element from the Enrichr Library: Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.\nPage: https://enrichr.dev/elements/css-button-hover-set.html\nMachine-readable spec: https://enrichr.dev/elements/css-button-hover-set.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 CssButtonHoverSet.\n2. Paste the JavaScript below into a separate code file named css-button-hover-set.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 \"./css-button-hover-set\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function CssButtonHoverSet(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(CssButtonHoverSet, {\n  accent: { type: ControlType.Color, title: \"Accent colour\", defaultValue: \"#e6ff55\" },\n  speed: { type: ControlType.Number, title: \"Speed\", min: 150, max: 1000, step: 25, defaultValue: 450 },\n  radius: { type: ControlType.Number, title: \"Corner radius\", min: 0, max: 2, step: 0.1, defaultValue: 0.7 },\n  size: { type: ControlType.Number, title: \"Text size\", min: 0.8, max: 1.4, step: 0.05, defaultValue: 1 },\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 \"CSS button hover set\" 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 \"CSS button hover set\" element from the Enrichr Library: Six pure-CSS button hover animations: fill sweep, border draw, shine, split text, ripple and arrow slide.\nPage: https://enrichr.dev/elements/css-button-hover-set.html\nMachine-readable spec: https://enrichr.dev/elements/css-button-hover-set.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-css-button-hover-set\"></div>, and a <script> block with the JavaScript followed by:\n   mount(document.getElementById(\"enrichr-css-button-hover-set\"), { ...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": "All six are native buttons and every effect also triggers on :focus-visible, with a clear focus ring, so keyboard users see the same state. Hover states keep text legible by switching to dark ink when the fill arrives. With prefers-reduced-motion the transitions collapse to an instant state change.",
  "performance": "No JavaScript runs after mount. Effects animate transform, clip-path and background-size on small elements, which is cheap. Avoid applying the shine or ripple layers to very large surfaces.",
  "dependencies": [],
  "source": {
    "markup": "<div class=\"ef-cbh\">\n  <div class=\"ef-cbh__wrap\"><div class=\"ef-cbh__grid\">\n    <button type=\"button\" class=\"ef-cbh__b ef-cbh__b--fill\"><span>Fill sweep</span></button>\n    <button type=\"button\" class=\"ef-cbh__b ef-cbh__b--draw\"><span>Border draw</span></button>\n    <button type=\"button\" class=\"ef-cbh__b ef-cbh__b--shine\"><span>Shine</span></button>\n    <button type=\"button\" class=\"ef-cbh__b ef-cbh__b--split\" data-t=\"Split text\"><span>Split text</span></button>\n    <button type=\"button\" class=\"ef-cbh__b ef-cbh__b--ripple\"><span>Ripple</span></button>\n    <button type=\"button\" class=\"ef-cbh__b ef-cbh__b--arrow\"><span>Arrow slide</span><svg viewBox=\"0 0 24 24\" width=\"18\" height=\"18\" aria-hidden=\"true\"><path d=\"M4 12h15M13 6l6 6-6 6\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"/></svg></button>\n  </div></div>\n</div>",
    "css": "/* Enrichr Library · https://enrichr.dev */\n.ef-cbh { width: 100%; }\n.ef-cbh__wrap { --ef-acc: #e6ff55; --ef-dur: 450ms; --ef-rad: 0.7rem; --ef-sz: 1rem; box-sizing: border-box; width: 100%; min-height: 18rem; padding: 1.5rem; border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-family: system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif; }\n.ef-cbh__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1.2rem; width: 100%; max-width: 34rem; }\n.ef-cbh__b { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.95em 1.2em; border: 1.5px solid var(--ef-acc); border-radius: var(--ef-rad); background: transparent; color: var(--ef-acc); font: inherit; font-size: var(--ef-sz); font-weight: 700; letter-spacing: 0.02em; cursor: pointer; overflow: hidden; outline: none; transition: color var(--ef-dur) cubic-bezier(.2,.8,.2,1), box-shadow 200ms; }\n.ef-cbh__b > span { position: relative; z-index: 1; }\n.ef-cbh__b:focus-visible { box-shadow: 0 0 0 3px #0c1e18, 0 0 0 5px var(--ef-acc); }\n/* 1 fill sweep */\n.ef-cbh__b--fill::before { content: \"\"; position: absolute; inset: 0; background: var(--ef-acc); transform: translateX(-101%); transition: transform var(--ef-dur) cubic-bezier(.2,.8,.2,1); }\n.ef-cbh__b--fill:hover::before, .ef-cbh__b--fill:focus-visible::before { transform: none; }\n.ef-cbh__b--fill:hover, .ef-cbh__b--fill:focus-visible { color: #0c1e18; }\n/* 2 border draw */\n.ef-cbh__b--draw { border-color: transparent; background: linear-gradient(var(--ef-acc), var(--ef-acc)) top left / 0 2px no-repeat, linear-gradient(var(--ef-acc), var(--ef-acc)) top right / 2px 0 no-repeat, linear-gradient(var(--ef-acc), var(--ef-acc)) bottom right / 0 2px no-repeat, linear-gradient(var(--ef-acc), var(--ef-acc)) bottom left / 2px 0 no-repeat; box-shadow: inset 0 0 0 1.5px rgba(230, 255, 85, 0.28); transition: background-size calc(var(--ef-dur) / 2) linear, color var(--ef-dur); }\n.ef-cbh__b--draw:hover, .ef-cbh__b--draw:focus-visible { background-size: 100% 2px, 2px 100%, 100% 2px, 2px 100%; transition-delay: 0s, calc(var(--ef-dur) / 2), 0s, calc(var(--ef-dur) / 2); }\n.ef-cbh__b--draw:focus-visible { box-shadow: inset 0 0 0 1.5px rgba(230, 255, 85, 0.28), 0 0 0 5px rgba(230, 255, 85, 0.5); }\n/* 3 shine */\n.ef-cbh__b--shine { background: var(--ef-acc); color: #0c1e18; }\n.ef-cbh__b--shine::after { content: \"\"; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent); transform: skewX(-20deg); }\n.ef-cbh__b--shine:hover::after, .ef-cbh__b--shine:focus-visible::after { left: 130%; transition: left calc(var(--ef-dur) * 1.4) ease; }\n/* 4 split text */\n.ef-cbh__b--split > span { display: block; transition: transform var(--ef-dur) cubic-bezier(.2,.8,.2,1); }\n.ef-cbh__b--split::after { content: attr(data-t); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--ef-acc); color: #0c1e18; clip-path: inset(0 0 100% 0); transition: clip-path var(--ef-dur) cubic-bezier(.2,.8,.2,1); z-index: 2; }\n.ef-cbh__b--split:hover::after, .ef-cbh__b--split:focus-visible::after { clip-path: inset(0); }\n.ef-cbh__b--split:hover > span, .ef-cbh__b--split:focus-visible > span { transform: translateY(-40%); }\n/* 5 ripple-ish */\n.ef-cbh__b--ripple::before { content: \"\"; position: absolute; left: 50%; top: 50%; width: 220%; aspect-ratio: 1; border-radius: 50%; background: var(--ef-acc); transform: translate(-50%, -50%) scale(0); transition: transform calc(var(--ef-dur) * 1.3) cubic-bezier(.2,.8,.2,1); }\n.ef-cbh__b--ripple:hover::before, .ef-cbh__b--ripple:focus-visible::before { transform: translate(-50%, -50%) scale(1); }\n.ef-cbh__b--ripple:hover, .ef-cbh__b--ripple:focus-visible { color: #0c1e18; }\n.ef-cbh__b--ripple:active::before { transform: translate(-50%, -50%) scale(1.08); }\n/* 6 arrow slide */\n.ef-cbh__b--arrow svg { position: relative; z-index: 1; flex: none; width: 0; margin-left: -0.5rem; opacity: 0; transform: translateX(-8px); transition: width var(--ef-dur) cubic-bezier(.2,.8,.2,1), margin var(--ef-dur) cubic-bezier(.2,.8,.2,1), opacity var(--ef-dur), transform var(--ef-dur) cubic-bezier(.2,.8,.2,1); }\n.ef-cbh__b--arrow:hover svg, .ef-cbh__b--arrow:focus-visible svg { width: 1.1em; margin-left: 0; opacity: 1; transform: none; }\n@media (prefers-reduced-motion: reduce) {\n  .ef-cbh__b, .ef-cbh__b *, .ef-cbh__b::before, .ef-cbh__b::after { transition-duration: 1ms !important; transition-delay: 0s !important; }\n  .ef-cbh__b--split:hover > span, .ef-cbh__b--split:focus-visible > span { transform: none; }\n}",
    "js": "// Enrichr Library · https://enrichr.dev\n// CSS button hover set: six pure-CSS hover effects (fill sweep, border draw, shine, split text, ripple, arrow slide).\n// The effects live entirely in the stylesheet and also fire on keyboard focus. This script only writes four CSS variables\n// on the wrapper (--ef-acc, --ef-dur, --ef-rad, --ef-sz), so there are no listeners or timers to clean up.\n// mount(root, { background, accent, speed (ms), radius (rem), size (rem) })\nfunction mount(root, o) {\n  var wrap = root.querySelector(\".ef-cbh__wrap\");\n  var opts = {};\n  function update(next) {\n    opts = Object.assign({ background: \"#0c1e18\", accent: \"#e6ff55\", speed: 450, radius: 0.7, size: 1 }, opts, next || {});\n    wrap.style.background = opts.background;\n    wrap.style.setProperty(\"--ef-acc\", opts.accent);\n    wrap.style.setProperty(\"--ef-dur\", opts.speed + \"ms\");\n    wrap.style.setProperty(\"--ef-rad\", opts.radius + \"rem\");\n    wrap.style.setProperty(\"--ef-sz\", opts.size + \"rem\");\n  }\n  function destroy() { wrap.style.cssText = \"\"; }\n  update(o);\n  return { update: update, destroy: destroy };\n}"
  }
}