{
  "id": "line-hover-links",
  "kind": "element",
  "title": "Line hover links",
  "summary": "Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.",
  "url": "https://enrichr.dev/elements/line-hover-links.html",
  "section": "nav",
  "techniques": [
    "pointer-interaction",
    "text-animation"
  ],
  "stack": [
    "Vanilla JS",
    "CSS"
  ],
  "frameworks": [
    "React",
    "Next.js",
    "Vanilla"
  ],
  "mood": [
    "clean",
    "polished",
    "playful"
  ],
  "intents": [
    "animated underline link hover",
    "css line hover animation for links",
    "strike through link hover effect",
    "wavy underline link hover",
    "marker highlight link hover",
    "text link hover effects collection"
  ],
  "status": "tested",
  "params": [
    {
      "key": "accent",
      "label": "Accent colour",
      "type": "color",
      "value": "#e6ff55"
    },
    {
      "key": "duration",
      "label": "Duration (ms)",
      "type": "range",
      "min": 100,
      "max": 1200,
      "step": 50,
      "value": 450
    },
    {
      "key": "thickness",
      "label": "Line thickness (px)",
      "type": "range",
      "min": 1,
      "max": 6,
      "step": 1,
      "value": 2
    },
    {
      "key": "size",
      "label": "Text size (rem)",
      "type": "range",
      "min": 1,
      "max": 2.4,
      "step": 0.05,
      "value": 1.35
    }
  ],
  "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 \"Line hover links\" element to this project.\n\nThis is the \"Line hover links\" element from the Enrichr Library: Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.\nPage: https://enrichr.dev/elements/line-hover-links.html\nMachine-readable spec: https://enrichr.dev/elements/line-hover-links.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/line-hover-links.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 \"Line hover links\" 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 \"Line hover links\" element from the Enrichr Library: Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.\nPage: https://enrichr.dev/elements/line-hover-links.html\nMachine-readable spec: https://enrichr.dev/elements/line-hover-links.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 \"Line hover links\" element to this codebase.\n\nThis is the \"Line hover links\" element from the Enrichr Library: Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.\nPage: https://enrichr.dev/elements/line-hover-links.html\nMachine-readable spec: https://enrichr.dev/elements/line-hover-links.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-line-hover-links.mdc so the rule stays with the project:\n---\ndescription: How to use the Enrichr Line hover links 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 \"Line hover links\" element. Tailwind is available but this component needs no utility classes.\n\nThis is the \"Line hover links\" element from the Enrichr Library: Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.\nPage: https://enrichr.dev/elements/line-hover-links.html\nMachine-readable spec: https://enrichr.dev/elements/line-hover-links.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- line-hover-links.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 \"./line-hover-links\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function LineHoverLinks(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 \"Line hover links\" element to this React + Vite + TypeScript + Tailwind project. Do not install any packages.\n\nThis is the \"Line hover links\" element from the Enrichr Library: Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.\nPage: https://enrichr.dev/elements/line-hover-links.html\nMachine-readable spec: https://enrichr.dev/elements/line-hover-links.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- line-hover-links.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/LineHoverLinks.tsx):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./line-hover-links\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function LineHoverLinks(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 \"Line hover links\" element.\n\nThis is the \"Line hover links\" element from the Enrichr Library: Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.\nPage: https://enrichr.dev/elements/line-hover-links.html\nMachine-readable spec: https://enrichr.dev/elements/line-hover-links.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), line-hover-links.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 \"Line hover links\" element. No packages, no server code.\n\nThis is the \"Line hover links\" element from the Enrichr Library: Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.\nPage: https://enrichr.dev/elements/line-hover-links.html\nMachine-readable spec: https://enrichr.dev/elements/line-hover-links.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 line-hover-links.js and then main.js), style.css (the CSS below), line-hover-links.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 \"Line hover links\" 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 \"Line hover links\" element from the Enrichr Library: Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.\nPage: https://enrichr.dev/elements/line-hover-links.html\nMachine-readable spec: https://enrichr.dev/elements/line-hover-links.json\n\nWhat it does: Each link is a normal anchor with a variant class. The line is drawn by the ::before and ::after pseudo-elements, which start at scaleX(0) and grow to scaleX(1) on hover and focus-visible, with the transform origin deciding the direction. Strike-through places the line at mid height, double line uses both pseudo-elements with opposite origins, marker highlight animates the height of a line behind the text and flips the text colour, and offset slides a detached line in under the word while the word nudges aside. The wavy line is an inline SVG path drawn by animating stroke-dashoffset from a long dash length to zero. The script only builds the links and writes four CSS variables (accent, duration, thickness, size).\nAccessibility: Every effect is attached to :focus-visible as well as :hover, so keyboard users get the same animation plus an outline. The decorative SVG is aria-hidden and the lines are pseudo-elements, so screen readers only see the link text. With prefers-reduced-motion the transitions are removed and the line simply appears. Check that the accent colour has enough contrast against the background, and against the text for the marker variant.\n\nTunable settings:\n- Accent colour: color, default #e6ff55\n- Duration (ms): range 100 to 1200, step 50, default 450\n- Line thickness (px): range 1 to 6, step 1, default 2\n- Text size (rem): range 1 to 2.4, step 0.05, default 1.35\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/line-hover-links.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 \"Line hover links\" 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 \"Line hover links\" element from the Enrichr Library: Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.\nPage: https://enrichr.dev/elements/line-hover-links.html\nMachine-readable spec: https://enrichr.dev/elements/line-hover-links.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 LineHoverLinks.\n2. Paste the JavaScript below into a separate code file named line-hover-links.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 \"./line-hover-links\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function LineHoverLinks(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(LineHoverLinks, {\n  accent: { type: ControlType.Color, title: \"Accent colour\", defaultValue: \"#e6ff55\" },\n  duration: { type: ControlType.Number, title: \"Duration\", min: 100, max: 1200, step: 50, defaultValue: 450 },\n  thickness: { type: ControlType.Number, title: \"Line thickness\", min: 1, max: 6, step: 1, defaultValue: 2 },\n  size: { type: ControlType.Number, title: \"Text size\", min: 1, max: 2.4, step: 0.05, defaultValue: 1.35 },\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 \"Line hover links\" 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 \"Line hover links\" element from the Enrichr Library: Six text links with different CSS line hover animations: underline grow, strike-through, wavy SVG, double line, marker highlight and an offset slide.\nPage: https://enrichr.dev/elements/line-hover-links.html\nMachine-readable spec: https://enrichr.dev/elements/line-hover-links.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-line-hover-links\"></div>, and a <script> block with the JavaScript followed by:\n   mount(document.getElementById(\"enrichr-line-hover-links\"), { ...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": "Every effect is attached to :focus-visible as well as :hover, so keyboard users get the same animation plus an outline. The decorative SVG is aria-hidden and the lines are pseudo-elements, so screen readers only see the link text. With prefers-reduced-motion the transitions are removed and the line simply appears. Check that the accent colour has enough contrast against the background, and against the text for the marker variant.",
  "performance": "Only transform, opacity and a single height transition on one pseudo-element are animated, and only while a link is hovered. There are no listeners other than a click guard on the demo links, no rAF and no layout reads.",
  "dependencies": [],
  "source": {
    "markup": "<div class=\"ef-llh\">\n  <div class=\"ef-llh__wrap\"><div class=\"ef-llh__list\"></div></div>\n</div>",
    "css": "/* Enrichr Library · https://enrichr.dev */\n.ef-llh { width: 100%; }\n.ef-llh__wrap { --ef-acc: #e6ff55; --ef-d: 450ms; --ef-t: 2px; --ef-fs: 1.35rem; box-sizing: border-box; width: 100%; min-height: 18rem; padding: 1.4rem; border-radius: 1rem; display: flex; align-items: center; color: #fbf8f1; font-family: system-ui, -apple-system, \"Segoe UI\", Roboto, sans-serif; }\n.ef-llh__list { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1.4rem 1.6rem; }\n.ef-llh__row { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }\n.ef-llh__tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.55; }\n.ef-llh__a { position: relative; display: inline-block; padding: 0.1em 0; font-size: var(--ef-fs); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; color: inherit; text-decoration: none; outline: none; isolation: isolate; }\n.ef-llh__a:focus-visible { outline: 2px solid var(--ef-acc); outline-offset: 6px; border-radius: 2px; }\n.ef-llh__a::before, .ef-llh__a::after { content: \"\"; position: absolute; pointer-events: none; transition: transform var(--ef-d) cubic-bezier(.2,.8,.2,1), opacity var(--ef-d), height var(--ef-d) cubic-bezier(.2,.8,.2,1); }\n\n/* 1 underline grow */\n.ef-llh__a--grow::after { left: 0; right: 0; bottom: -0.05em; height: var(--ef-t); background: var(--ef-acc); transform: scaleX(0); transform-origin: 0 50%; }\n.ef-llh__a--grow:hover::after, .ef-llh__a--grow:focus-visible::after { transform: scaleX(1); }\n\n/* 2 strike-through */\n.ef-llh__a--strike::after { left: -0.08em; right: -0.08em; top: 52%; height: var(--ef-t); background: var(--ef-acc); transform: scaleX(0); transform-origin: 100% 50%; }\n.ef-llh__a--strike:hover::after, .ef-llh__a--strike:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }\n\n/* 3 wavy svg */\n.ef-llh__a--wave { padding-bottom: 0.3em; }\n.ef-llh__wavesvg { position: absolute; left: 0; bottom: 0; width: 100%; height: 0.32em; overflow: visible; pointer-events: none; }\n.ef-llh__wavesvg path { fill: none; stroke: var(--ef-acc); stroke-width: var(--ef-t); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset calc(var(--ef-d) * 1.6) cubic-bezier(.2,.8,.2,1); }\n.ef-llh__a--wave:hover path, .ef-llh__a--wave:focus-visible path { stroke-dashoffset: 0; }\n\n/* 4 double line */\n.ef-llh__a--double::before, .ef-llh__a--double::after { left: 0; right: 0; height: var(--ef-t); background: var(--ef-acc); transform: scaleX(0); }\n.ef-llh__a--double::before { top: 0; transform-origin: 100% 50%; }\n.ef-llh__a--double::after { bottom: 0; transform-origin: 0 50%; }\n.ef-llh__a--double:hover::before, .ef-llh__a--double:hover::after, .ef-llh__a--double:focus-visible::before, .ef-llh__a--double:focus-visible::after { transform: scaleX(1); }\n\n/* 5 marker highlight */\n.ef-llh__a--marker { padding: 0.1em 0.15em; margin: 0 -0.15em; transition: color var(--ef-d); }\n.ef-llh__a--marker::before { left: 0; right: 0; bottom: 0.05em; height: 0.18em; background: var(--ef-acc); z-index: -1; opacity: 0.9; }\n.ef-llh__a--marker:hover::before, .ef-llh__a--marker:focus-visible::before { height: 92%; }\n.ef-llh__a--marker:hover, .ef-llh__a--marker:focus-visible { color: #0c1e18; }\n\n/* 6 offset line */\n.ef-llh__a--offset { transition: transform var(--ef-d) cubic-bezier(.2,.8,.2,1); }\n.ef-llh__a--offset::after { left: 0; right: 0; bottom: -0.3em; height: var(--ef-t); background: var(--ef-acc); transform: translateX(-100%); opacity: 0; }\n.ef-llh__a--offset:hover::after, .ef-llh__a--offset:focus-visible::after { transform: translateX(0.5em); opacity: 1; }\n.ef-llh__a--offset:hover, .ef-llh__a--offset:focus-visible { transform: translateX(-0.2em); }\n\n@media (prefers-reduced-motion: reduce) {\n  .ef-llh__a, .ef-llh__a::before, .ef-llh__a::after, .ef-llh__wavesvg path { transition: none !important; }\n  .ef-llh__a--offset:hover, .ef-llh__a--offset:focus-visible { transform: none; }\n}",
    "js": "// Enrichr Library · https://enrichr.dev\n// Line hover links: six text links, each with a different CSS-only line animation on hover and keyboard focus\n// (underline grow, strike-through, wavy SVG, double line, marker highlight, offset). The script only builds the\n// links and writes CSS variables (--ef-acc --ef-d --ef-t --ef-fs); the animation itself lives in the stylesheet.\n// mount(root, { background, accent, duration (ms), thickness (px), size (rem) })\nfunction mount(root, o) {\n  var wrap = root.querySelector(\".ef-llh__wrap\");\n  var list = root.querySelector(\".ef-llh__list\");\n  var opts = {}, offs = [], built = false;\n  var NS = \"http://www.w3.org/2000/svg\";\n  var DATA = [\n    [\"grow\", \"Underline grow\", \"Journal\"],\n    [\"strike\", \"Strike through\", \"Archive\"],\n    [\"wave\", \"Wavy line\", \"Playground\"],\n    [\"double\", \"Double line\", \"Showcase\"],\n    [\"marker\", \"Marker highlight\", \"Manifesto\"],\n    [\"offset\", \"Offset slide\", \"Contact\"]\n  ];\n\n  function clear() { offs.forEach(function (f) { f(); }); offs = []; }\n  function build() {\n    clear();\n    list.textContent = \"\";\n    DATA.forEach(function (d) {\n      var row = document.createElement(\"div\"); row.className = \"ef-llh__row\";\n      var tag = document.createElement(\"span\"); tag.className = \"ef-llh__tag\"; tag.textContent = d[1];\n      var a = document.createElement(\"a\"); a.className = \"ef-llh__a ef-llh__a--\" + d[0]; a.href = \"#\";\n      a.appendChild(document.createTextNode(d[2]));\n      if (d[0] === \"wave\") {\n        var svg = document.createElementNS(NS, \"svg\");\n        svg.setAttribute(\"class\", \"ef-llh__wavesvg\");\n        svg.setAttribute(\"viewBox\", \"0 0 100 10\");\n        svg.setAttribute(\"preserveAspectRatio\", \"none\");\n        svg.setAttribute(\"aria-hidden\", \"true\");\n        var p = document.createElementNS(NS, \"path\");\n        p.setAttribute(\"d\", \"M0 5 Q 6.25 -2 12.5 5 T 25 5 T 37.5 5 T 50 5 T 62.5 5 T 75 5 T 87.5 5 T 100 5\");\n        svg.appendChild(p); a.appendChild(svg);\n      }\n      function ck(e) { e.preventDefault(); }\n      a.addEventListener(\"click\", ck);\n      offs.push(function () { a.removeEventListener(\"click\", ck); });\n      row.appendChild(tag); row.appendChild(a);\n      list.appendChild(row);\n    });\n    built = true;\n  }\n  function update(next) {\n    opts = Object.assign({ background: \"#0c1e18\", accent: \"#e6ff55\", duration: 450, thickness: 2, size: 1.35 }, opts, next || {});\n    wrap.style.background = opts.background;\n    wrap.style.setProperty(\"--ef-acc\", opts.accent);\n    wrap.style.setProperty(\"--ef-d\", Math.max(0, opts.duration) + \"ms\");\n    wrap.style.setProperty(\"--ef-t\", Math.max(1, opts.thickness) + \"px\");\n    wrap.style.setProperty(\"--ef-fs\", Math.max(0.8, opts.size) + \"rem\");\n    if (!built) build();\n  }\n  update(o);\n  return { update: update, destroy: function () { clear(); list.textContent = \"\"; built = false; } };\n}"
  }
}