{
  "id": "light-rays",
  "kind": "element",
  "title": "Soft light rays from above",
  "summary": "Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.",
  "url": "https://enrichr.dev/elements/light-rays.html",
  "section": "background",
  "techniques": [
    "pointer-interaction"
  ],
  "stack": [
    "Vanilla JS",
    "Canvas 2D",
    "SVG"
  ],
  "frameworks": [
    "React",
    "Next.js",
    "Vanilla"
  ],
  "mood": [
    "calm",
    "soft",
    "cinematic"
  ],
  "intents": [
    "god rays light beams background",
    "light shafts from top hero",
    "canvas volumetric light rays",
    "pointer moves light source",
    "soft ambient glow rays"
  ],
  "status": "tested",
  "params": [
    {
      "key": "accent",
      "label": "Ray colour",
      "type": "color",
      "value": "#e6ff55"
    },
    {
      "key": "rays",
      "label": "Rays",
      "type": "range",
      "min": 3,
      "max": 24,
      "step": 1,
      "value": 12
    },
    {
      "key": "intensity",
      "label": "Intensity",
      "type": "range",
      "min": 0.1,
      "max": 1,
      "step": 0.05,
      "value": 0.6
    },
    {
      "key": "sway",
      "label": "Sway",
      "type": "range",
      "min": 0,
      "max": 1,
      "step": 0.05,
      "value": 0.6
    },
    {
      "key": "spread",
      "label": "Fan spread (deg)",
      "type": "range",
      "min": 30,
      "max": 140,
      "step": 5,
      "value": 90
    }
  ],
  "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 \"Soft light rays from above\" element to this project.\n\nThis is the \"Soft light rays from above\" element from the Enrichr Library: Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.\nPage: https://enrichr.dev/elements/light-rays.html\nMachine-readable spec: https://enrichr.dev/elements/light-rays.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/light-rays.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 \"Soft light rays from above\" 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 \"Soft light rays from above\" element from the Enrichr Library: Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.\nPage: https://enrichr.dev/elements/light-rays.html\nMachine-readable spec: https://enrichr.dev/elements/light-rays.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 \"Soft light rays from above\" element to this codebase.\n\nThis is the \"Soft light rays from above\" element from the Enrichr Library: Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.\nPage: https://enrichr.dev/elements/light-rays.html\nMachine-readable spec: https://enrichr.dev/elements/light-rays.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-light-rays.mdc so the rule stays with the project:\n---\ndescription: How to use the Enrichr Soft light rays from above 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 \"Soft light rays from above\" element. Tailwind is available but this component needs no utility classes.\n\nThis is the \"Soft light rays from above\" element from the Enrichr Library: Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.\nPage: https://enrichr.dev/elements/light-rays.html\nMachine-readable spec: https://enrichr.dev/elements/light-rays.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- light-rays.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 \"./light-rays\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function LightRays(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 \"Soft light rays from above\" element to this React + Vite + TypeScript + Tailwind project. Do not install any packages.\n\nThis is the \"Soft light rays from above\" element from the Enrichr Library: Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.\nPage: https://enrichr.dev/elements/light-rays.html\nMachine-readable spec: https://enrichr.dev/elements/light-rays.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- light-rays.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/LightRays.tsx):\n```tsx\n\"use client\";\nimport { useEffect, useRef } from \"react\";\nimport { markup, mount } from \"./light-rays\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function LightRays(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 \"Soft light rays from above\" element.\n\nThis is the \"Soft light rays from above\" element from the Enrichr Library: Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.\nPage: https://enrichr.dev/elements/light-rays.html\nMachine-readable spec: https://enrichr.dev/elements/light-rays.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), light-rays.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 \"Soft light rays from above\" element. No packages, no server code.\n\nThis is the \"Soft light rays from above\" element from the Enrichr Library: Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.\nPage: https://enrichr.dev/elements/light-rays.html\nMachine-readable spec: https://enrichr.dev/elements/light-rays.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 light-rays.js and then main.js), style.css (the CSS below), light-rays.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 \"Soft light rays from above\" 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 \"Soft light rays from above\" element from the Enrichr Library: Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.\nPage: https://enrichr.dev/elements/light-rays.html\nMachine-readable spec: https://enrichr.dev/elements/light-rays.json\n\nWhat it does: A source point sits just above the top edge. Each ray is a thin wedge from the source to a far point at its own angle, filled with a linear gradient that fades from the ray colour to transparent. The wedges are drawn with additive blending so where they overlap the light builds up like real shafts. Every ray has its own phase and speed, so its angle and width drift with a sine wave for the gentle sway. The pointer x position eases the source sideways and tilts the whole fan. A radial glow at the source and a soft dark fade at the bottom finish the look. Three Enrichr puzzle pieces float above in an inline SVG layer.\nAccessibility: The canvas and puzzle art are decorative and hidden from assistive tech. Reduced motion draws one still frame with no sway or float, and the pointer still repositions the source without animation. Motion is slow and low contrast, but keep body text on a solid or darkened area for readability.\n\nTunable settings:\n- Ray colour: color, default #e6ff55\n- Rays: range 3 to 24, step 1, default 12\n- Intensity: range 0.1 to 1, step 0.05, default 0.6\n- Sway: range 0 to 1, step 0.05, default 0.6\n- Fan spread (deg): range 30 to 140, step 5, default 90\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/light-rays.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 \"Soft light rays from above\" 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 \"Soft light rays from above\" element from the Enrichr Library: Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.\nPage: https://enrichr.dev/elements/light-rays.html\nMachine-readable spec: https://enrichr.dev/elements/light-rays.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 LightRays.\n2. Paste the JavaScript below into a separate code file named light-rays.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 \"./light-rays\"; // markup is the HTML string; mount is the JavaScript's mount function\n\nexport default function LightRays(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(LightRays, {\n  accent: { type: ControlType.Color, title: \"Ray colour\", defaultValue: \"#e6ff55\" },\n  rays: { type: ControlType.Number, title: \"Rays\", min: 3, max: 24, step: 1, defaultValue: 12 },\n  intensity: { type: ControlType.Number, title: \"Intensity\", min: 0.1, max: 1, step: 0.05, defaultValue: 0.6 },\n  sway: { type: ControlType.Number, title: \"Sway\", min: 0, max: 1, step: 0.05, defaultValue: 0.6 },\n  spread: { type: ControlType.Number, title: \"Fan spread\", min: 30, max: 140, step: 5, defaultValue: 90 },\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 \"Soft light rays from above\" 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 \"Soft light rays from above\" element from the Enrichr Library: Soft god-rays fan down from a source at the top of the frame, sway gently, and follow the pointer sideways.\nPage: https://enrichr.dev/elements/light-rays.html\nMachine-readable spec: https://enrichr.dev/elements/light-rays.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-light-rays\"></div>, and a <script> block with the JavaScript followed by:\n   mount(document.getElementById(\"enrichr-light-rays\"), { ...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 canvas and puzzle art are decorative and hidden from assistive tech. Reduced motion draws one still frame with no sway or float, and the pointer still repositions the source without animation. Motion is slow and low contrast, but keep body text on a solid or darkened area for readability.",
  "performance": "One canvas redrawn per frame with a handful of gradient fills, which is cheap for up to 24 rays. The canvas is capped at 2x pixel ratio, resized through a ResizeObserver, and the loop stops when the element is off-screen.",
  "dependencies": [],
  "codepen": "https://codepen.io/Enrichr-Dev/pen/EaWGpqX",
  "source": {
    "markup": "<div class=\"ef-lrs\">\n  <div class=\"ef-lrs__wrap\">\n    <canvas class=\"ef-lrs__cv\" aria-hidden=\"true\"></canvas>\n    <svg class=\"ef-lrs__art\" viewBox=\"0 0 400 300\" preserveAspectRatio=\"xMidYMid slice\" aria-hidden=\"true\" focusable=\"false\">\n      <defs>\n        <symbol id=\"ef-lrs-pz1\" viewBox=\"1513.7 1453.9 322.3 322.3\"><path fill=\"currentColor\" d=\"M1821 1761.2h-292.3v-111.6c0-8 6.5-14.5 14.5-14.5 4.2 0 8.2 1.9 11 5.1 7.8 8.6 19.7 13.6 32.7 11.9 16.8-2.3 30.1-16 32-32.7 2.5-22.6-15.1-41.6-37.1-41.6-11 0-20.9 4.7-27.7 12.3-2.8 3.1-6.7 4.9-10.9 4.9-8 0-14.5-6.4-14.5-14.4v-111.7h292.3v111.7c0 8-6.4 14.4-14.5 14.4-4.2 0-8.1-1.8-10.9-5-7.9-8.6-19.7-13.6-32.7-11.9-16.8 2.2-30.1 15.9-32 32.7-2.5 22.6 15.1 41.6 37.1 41.6 11 0 20.8-4.8 27.7-12.3 2.8-3.1 6.7-5 10.8-5 8.1 0 14.5 6.5 14.5 14.5z\"/></symbol>\n        <symbol id=\"ef-lrs-pz4\" viewBox=\"1423.36 860.8 503.07 322.3\"><path fill=\"currentColor\" d=\"M1821 875.8v111.6c0 8 6.5 14.5 14.5 14.5 4.2 0 8.1-1.9 10.9-5 6.8-7.5 16.7-12.3 27.7-12.3 22 0 39.6 19 37.1 41.6-1.9 16.7-15.2 30.5-32 32.7-13 1.7-24.8-3.3-32.7-11.9-2.8-3.2-6.8-5-11-5-8 0-14.5 6.4-14.5 14.4v111.7h-111.6c-8 0-14.5-6.5-14.5-14.5 0-4.2 1.9-8.2 5-11 8.7-7.9 13.7-19.7 12-32.7-2.3-16.8-16-30.1-32.8-32-22.5-2.5-41.5 15.1-41.5 37.1 0 11 4.7 20.9 12.3 27.7 3.1 2.8 4.9 6.7 4.9 10.8v0.1c0 8-6.4 14.5-14.5 14.5h-111.6v-111.7c0-8-6.4-14.4-14.5-14.4-4.1 0-8 1.8-10.8 4.9-6.9 7.6-16.7 12.3-27.7 12.3-22 0-39.6-19-37.1-41.6 1.9-16.7 15.2-30.4 32-32.7 13-1.7 24.8 3.3 32.7 11.9 2.8 3.2 6.7 5.1 10.9 5.1 8.1 0 14.5-6.5 14.5-14.5v-111.6z\"/></symbol>\n        <symbol id=\"ef-lrs-pz8\" viewBox=\"1513.7 166.86 322.3 503.06\"><path fill=\"currentColor\" d=\"M1528.7 564.5v-111.6c0-8 6.5-14.5 14.5-14.5 4.2 0 8.2 1.9 11 5 7.8 8.7 19.7 13.7 32.7 11.9 16.8-2.2 30.1-15.9 32-32.7 2.5-22.5-15.1-41.5-37.1-41.5-11 0-20.9 4.7-27.7 12.3-2.8 3.1-6.7 4.9-10.9 4.9-8 0-14.5-6.5-14.5-14.5v-111.6h111.6c8.1 0 14.5-6.5 14.5-14.5 0-4.1-1.8-8.1-4.9-10.9-7.6-6.8-12.3-16.6-12.3-27.6 0-22 19-39.6 41.5-37.1 16.8 1.8 30.5 15.2 32.8 32 1.7 12.9-3.3 24.8-12 32.7-3.1 2.8-5 6.7-5 10.9 0 8 6.5 14.5 14.5 14.5h111.6v111.6c0 8-6.4 14.5-14.5 14.5-4.2 0-8.1-1.9-10.9-5-7.9-8.7-19.7-13.6-32.7-11.9-16.8 2.2-30.1 15.9-32 32.7-2.5 22.5 15.1 41.6 37.1 41.6 11 0 20.8-4.8 27.7-12.3 2.8-3.1 6.7-5 10.8-5 8.1 0 14.5 6.5 14.5 14.5v111.6h-111.6c-8 0-14.5 6.5-14.5 14.5 0 4.2 1.9 8.1 5 10.9 7.5 6.8 12.3 16.7 12.3 27.7 0 22-19 39.5-41.6 37.1-16.8-1.9-30.5-15.3-32.7-32-1.7-13 3.3-24.9 11.9-32.7 3.1-2.9 5-6.8 5-11 0-8-6.4-14.5-14.5-14.5z\"/></symbol>\n      </defs>\n      <use class=\"ef-lrs__pz ef-lrs__pz--a\" href=\"#ef-lrs-pz1\" x=\"40\" y=\"190\" width=\"70\" height=\"70\"/>\n      <use class=\"ef-lrs__pz ef-lrs__pz--b\" href=\"#ef-lrs-pz4\" x=\"262\" y=\"40\" width=\"96\" height=\"62\"/>\n      <use class=\"ef-lrs__pz ef-lrs__pz--c\" href=\"#ef-lrs-pz8\" x=\"300\" y=\"170\" width=\"52\" height=\"82\"/>\n    </svg>\n  </div>\n</div>",
    "css": "/* Enrichr Library · https://enrichr.dev */\n.ef-lrs { width: 100%; }\n.ef-lrs__wrap { position: relative; box-sizing: border-box; width: 100%; min-height: 18rem; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 1rem; background: #0c1e18; isolation: isolate; }\n.ef-lrs__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }\n.ef-lrs__art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }\n.ef-lrs__pz { color: #fbf8f1; opacity: 0.9; transform-box: fill-box; transform-origin: 50% 50%; animation: ef-lrs-float 7s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.45)); }\n.ef-lrs__pz--a { color: var(--ef-acc, #e6ff55); animation-duration: 6s; }\n.ef-lrs__pz--b { color: #fbf8f1; animation-duration: 8s; animation-delay: -2s; opacity: 0.8; }\n.ef-lrs__pz--c { color: #2f7d5b; animation-duration: 7s; animation-delay: -4s; }\n@keyframes ef-lrs-float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-9px) rotate(5deg); } }\n@media (prefers-reduced-motion: reduce) { .ef-lrs__pz { animation: none; } }",
    "js": "// Enrichr Library · https://enrichr.dev\n// Light rays: soft god-rays fan down from a source above the frame. Each ray is a tapered additive gradient wedge on a 2D canvas that\n// sways gently; the pointer moves the source sideways and tilts the fan. Original rebuild from the general idea.\n// Reduced motion draws one still frame. Pauses off-screen. mount(root, { background, accent, rays (3-24), intensity (0.1-1), sway (0-1), spread (30-140 deg) })\nfunction mount(root, o) {\n  var reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n  var wrap = root.querySelector(\".ef-lrs__wrap\");\n  var cv = root.querySelector(\".ef-lrs__cv\");\n  var ctx = cv.getContext(\"2d\");\n  var opts = {}, W = 0, H = 0, dpr = 1, rays = [], raf = 0, visible = true, t0 = performance.now(), tNow = 0, offs = [];\n  var src = { x: 0.5, y: 0 }, target = { x: 0.5, y: 0 };\n\n  function rgba(hex, a) {\n    var h = hex.replace(\"#\", \"\");\n    if (h.length === 3) h = h.replace(/./g, \"$&$&\");\n    var n = parseInt(h, 16);\n    return \"rgba(\" + (n >> 16 & 255) + \",\" + (n >> 8 & 255) + \",\" + (n & 255) + \",\" + a.toFixed(3) + \")\";\n  }\n  function build() {\n    rays = [];\n    for (var i = 0; i < opts.rays; i++) {\n      var u = opts.rays === 1 ? 0.5 : i / (opts.rays - 1);\n      rays.push({ u: u + (Math.random() - 0.5) * 0.06, w: 0.012 + Math.random() * 0.05, ph: Math.random() * 6.28, sp: 0.25 + Math.random() * 0.5, k: Math.random() < 0.3 ? 1 : 0, a: 0.5 + Math.random() * 0.5 });\n    }\n  }\n  function size() {\n    var r = wrap.getBoundingClientRect();\n    dpr = Math.min(window.devicePixelRatio || 1, 2);\n    W = Math.max(1, Math.round(r.width)); H = Math.max(1, Math.round(r.height));\n    cv.width = W * dpr; cv.height = H * dpr;\n    ctx.setTransform(dpr, 0, 0, dpr, 0, 0);\n    draw();\n  }\n  function draw() {\n    ctx.globalCompositeOperation = \"source-over\";\n    ctx.fillStyle = opts.background; ctx.fillRect(0, 0, W, H);\n    var sx = src.x * W, sy = -H * 0.08;\n    var L = Math.hypot(W, H) * 1.15;\n    var spread = opts.spread * Math.PI / 180;\n    var tilt = (src.x - 0.5) * -0.35;\n    ctx.globalCompositeOperation = \"lighter\";\n    for (var i = 0; i < rays.length; i++) {\n      var r = rays[i];\n      var sw = Math.sin(tNow * r.sp + r.ph) * 0.07 * opts.sway;\n      var ang = Math.PI / 2 + tilt + (r.u - 0.5) * spread + sw;\n      var hw = r.w * (0.8 + 0.3 * Math.sin(tNow * r.sp * 0.7 + r.ph));\n      var ex = sx + Math.cos(ang) * L, ey = sy + Math.sin(ang) * L;\n      var nx = -Math.sin(ang), ny = Math.cos(ang), wd = L * hw;\n      var col = r.k ? \"#c6f26b\" : opts.accent;\n      var g = ctx.createLinearGradient(sx, sy, ex, ey);\n      var al = opts.intensity * 0.5 * r.a;\n      g.addColorStop(0, rgba(col, al)); g.addColorStop(0.45, rgba(col, al * 0.35)); g.addColorStop(1, rgba(col, 0));\n      ctx.fillStyle = g;\n      ctx.beginPath(); ctx.moveTo(sx - nx * 3, sy - ny * 3); ctx.lineTo(ex + nx * wd, ey + ny * wd); ctx.lineTo(ex - nx * wd, ey - ny * wd); ctx.lineTo(sx + nx * 3, sy + ny * 3); ctx.closePath(); ctx.fill();\n    }\n    var gl = ctx.createRadialGradient(sx, sy, 0, sx, sy, Math.max(W, H) * 0.55);\n    gl.addColorStop(0, rgba(opts.accent, opts.intensity * 0.55)); gl.addColorStop(0.35, \"rgba(10,107,70,0.25)\"); gl.addColorStop(1, \"rgba(10,107,70,0)\");\n    ctx.fillStyle = gl; ctx.fillRect(0, 0, W, H);\n    ctx.globalCompositeOperation = \"source-over\";\n    var fade = ctx.createLinearGradient(0, H * 0.55, 0, H);\n    fade.addColorStop(0, \"rgba(12,30,24,0)\"); fade.addColorStop(1, \"rgba(12,30,24,0.65)\");\n    ctx.fillStyle = fade; ctx.fillRect(0, 0, W, H);\n  }\n  function loop(t) {\n    raf = 0;\n    if (!visible) return;\n    tNow = (t - t0) / 1000;\n    src.x += (target.x - src.x) * 0.06;\n    draw();\n    raf = requestAnimationFrame(loop);\n  }\n  function play() { if (!reduce && visible && !raf) raf = requestAnimationFrame(loop); }\n  function pmove(e) {\n    var r = wrap.getBoundingClientRect();\n    target.x = Math.max(0, Math.min(1, (e.clientX - r.left) / r.width));\n    if (reduce) { src.x = target.x; draw(); }\n  }\n  function pleave() { target.x = 0.5; if (reduce) { src.x = 0.5; draw(); } }\n  wrap.addEventListener(\"pointermove\", pmove);\n  wrap.addEventListener(\"pointerleave\", pleave);\n  offs.push(function () { wrap.removeEventListener(\"pointermove\", pmove); wrap.removeEventListener(\"pointerleave\", pleave); });\n  if (window.ResizeObserver) { var ro = new ResizeObserver(size); ro.observe(wrap); offs.push(function () { ro.disconnect(); }); }\n  else { window.addEventListener(\"resize\", size); offs.push(function () { window.removeEventListener(\"resize\", size); }); }\n  if (window.IntersectionObserver) {\n    var io = new IntersectionObserver(function (en) {\n      visible = en[en.length - 1].isIntersecting;\n      if (visible) play(); else if (raf) { cancelAnimationFrame(raf); raf = 0; }\n    });\n    io.observe(wrap); offs.push(function () { io.disconnect(); });\n  }\n  function update(next) {\n    var prev = opts;\n    opts = Object.assign({ background: \"#0c1e18\", accent: \"#e6ff55\", rays: 12, intensity: 0.6, sway: 0.6, spread: 90 }, opts, next || {});\n    opts.rays = Math.max(3, Math.min(24, Math.round(opts.rays)));\n    wrap.style.background = opts.background;\n    wrap.style.setProperty(\"--ef-acc\", opts.accent);\n    if (prev.rays !== opts.rays) build();\n    if (W) draw();\n  }\n  update(o);\n  size();\n  play();\n  return {\n    update: update,\n    destroy: function () {\n      if (raf) cancelAnimationFrame(raf);\n      raf = 0; visible = false;\n      offs.forEach(function (f) { f(); }); offs = [];\n    }\n  };\n}"
  }
}