{"_id":"@crazygl/hero-before-after-slider","_rev":"2-619c035bf5a73c5835f251d4a2b10913","name":"@crazygl/hero-before-after-slider","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@crazygl/hero-before-after-slider","version":"0.1.0","author":{"name":"ybouane"},"license":"Apache-2.0","_id":"@crazygl/hero-before-after-slider@0.1.0","maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"homepage":"https://crazygl.com/hero/before-after-slider","bugs":{"url":"https://github.com/crazygl-com/hero-before-after-slider/issues"},"dist":{"shasum":"7eff9474cd53dde8dd3d3d092766ecc3985ad1aa","tarball":"https://registry.npmjs.org/@crazygl/hero-before-after-slider/-/hero-before-after-slider-0.1.0.tgz","fileCount":9,"integrity":"sha512-uXDzijsU2JHScK0OqH24pIh8bBoI+RhjlabU7f4ZZnzhT/w0hQ74pZW+UEfcnghBS9+WyeqhbqdzkhtQDD3PLg==","signatures":[{"sig":"MEUCICPZkWEGQjoX1URNAktKpAVYYvUiIvNYSqZkvu1+ObksAiEAvnxPHsRwJ2sATV8P5bQHw0j54eAtSxiPxqGbg90lnyE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66969},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./style.css":"./style.css","./metadata.json":"./metadata.json"},"gitHead":"a909ffd57264b4d4a669b7ea2833c782c36b9d26","_npmUser":{"name":"ybouane","email":"ybouane@ybouane.com"},"repository":{"url":"git+https://github.com/crazygl-com/hero-before-after-slider.git","type":"git"},"_npmVersion":"11.12.0","description":"Cinematic Before / After Slider — two images or videos blended across a glowing, draggable glass divider with chromatic refraction and parallax.","directories":{},"_nodeVersion":"24.14.0","dependencies":{"@crazygl/core":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/hero-before-after-slider_0.1.0_1782870538016_0.49518764563355044","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@crazygl/hero-before-after-slider","version":"0.1.1","description":"Cinematic Before / After Slider — Two images or videos blended in 3D across a glowing, draggable glass divider. The split refracts the scene with a chromatic edge, the whole plane tilts on pointer parallax, and corner… A customizable CrazyGL animated hero","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./metadata.json":"./metadata.json","./style.css":"./style.css"},"dependencies":{"@crazygl/core":"^0.1.1"},"peerDependencies":{"react":">=18","react-dom":">=18"},"license":"Apache-2.0","author":{"name":"ybouane"},"homepage":"https://crazygl.com/hero/before-after-slider","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-before-after-slider.git"},"publishConfig":{"access":"public"},"keywords":["before-after","comparison","glass","refraction","slider","transformation","premium","before-after-slider","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas","three"],"bugs":{"url":"https://github.com/crazygl-com/hero-before-after-slider/issues"},"gitHead":"7ab36b69a5f8a2b635c1a676b787295df0f1f1c0","_id":"@crazygl/hero-before-after-slider@0.1.1","_nodeVersion":"24.14.0","_npmVersion":"11.12.0","dist":{"integrity":"sha512-fRlDKq3UDykJK39JfbbfY+Kaalmfr3Yfs3ZZc9k8dnBr9/F1Y5GCrCBlfu59aF/uPDh+EF9kpfn/nXf+T7YxTA==","shasum":"d68ae972513e028ba7ef250905bbdb301b8638bb","tarball":"https://registry.npmjs.org/@crazygl/hero-before-after-slider/-/hero-before-after-slider-0.1.1.tgz","fileCount":9,"unpackedSize":67528,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDeVdfspdrfrpGEHcMgDl7x6/nPKd9jcN0uU5XBhyQ0YgIhAP0jDCY7uUyXZnCxT2yrhfQyr0vi6m4HLA7PafioFuOk"}]},"_npmUser":{"name":"ybouane","email":"ybouane@ybouane.com"},"directories":{},"maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/hero-before-after-slider_0.1.1_1782922263210_0.5708720574073889"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-01T01:48:57.858Z","modified":"2026-07-01T16:11:03.464Z","0.1.0":"2026-07-01T01:48:58.147Z","0.1.1":"2026-07-01T16:11:03.347Z"},"bugs":{"url":"https://github.com/crazygl-com/hero-before-after-slider/issues"},"author":{"name":"ybouane"},"license":"Apache-2.0","homepage":"https://crazygl.com/hero/before-after-slider","repository":{"type":"git","url":"git+https://github.com/crazygl-com/hero-before-after-slider.git"},"description":"Cinematic Before / After Slider — Two images or videos blended in 3D across a glowing, draggable glass divider. The split refracts the scene with a chromatic edge, the whole plane tilts on pointer parallax, and corner… A customizable CrazyGL animated hero","maintainers":[{"name":"ybouane","email":"ybouane@ybouane.com"}],"readme":"<sub>*Hero made by [@ybouane](https://x.com/ybouane).*</sub>\n<p align=\"center\">\n  <img src=\"https://crazygl.com/heroes/hero-before-after-slider/banner-full.png\" alt=\"Cinematic Before / After Slider\" width=\"640\">\n</p>\n\n# @crazygl/hero-before-after-slider\n\nTwo images or videos blended in 3D across a glowing, draggable glass divider. The split refracts the scene with a chromatic edge, the whole plane tilts on pointer parallax, and corner labels call out before and after — a transformation showcase for AI enhancement, photo and video editing, design tools, and beauty tech.\n\n## Demo\n[Cinematic Before / After Slider](https://crazygl.com/hero/before-after-slider)\n\n## Install\n\n```bash\nnpm install @crazygl/hero-before-after-slider\n```\n\n## Usage\n\n```tsx\nimport BeforeAfterSlider from '@crazygl/hero-before-after-slider';\n\nexport default function Hero() {\n  return (\n    <BeforeAfterSlider\n      beforeMedia=\"https://example.com/raw.jpg\"\n      afterMedia=\"https://example.com/enhanced.jpg\"\n      splitPosition={0.5}\n      glowColor=\"#bfe3ff\"\n    />\n  );\n}\n```\n\n## Customise\n\n- **Media** — `beforeMedia` / `afterMedia` (photo or video, AVIF/WebP/PNG/JPG/MP4/WebM, cover-fitted), plus `beforeLabel` / `afterLabel` / `showLabels` corner tags.\n- **Divider** — `splitPosition` (rest position 0.1–0.9), `splitAngle` (−30°–30° tilt), `refractionStrength`, `chromaStrength`, and `handleStyle` (arrows / dot / line).\n- **Glow & light** — `glowColor`, `glowIntensity`, `parallaxStrength` (pointer shear), `backgroundTone`.\n- **Content** — heading / two-columns / custom slot with optional `headingFontFamily`.\n\n## Best for\n\n- AI photo / video enhancement tools showing a clear transformation.\n- Image and video editors, retouching and design apps.\n- Beauty-tech and skincare brands (before/after results).\n- Any product launch whose story is a side-by-side comparison.\n\n\n\nThis hero is part of [CrazyGL](https://crazygl.com), a collection of production-ready WebGL, canvas, 3D, and typography effects. Every CrazyGL hero ships with an agent-ready `SKILL.md` file that helps developers and coding agents adapt the effect into custom landing pages and interactive experiences.\n","readmeFilename":"README.md","keywords":["before-after","comparison","glass","refraction","slider","transformation","premium","before-after-slider","crazygl","hero","hero-section","webgl","react","animation","ui","landing-page","interactive","frontend","component","canvas","three"]}