@crazygl/hero-cursor-shadow-text
v0.1.1
Published
Cursor Shadow Text — The heading casts a real drop shadow whose direction tracks the cursor — like a single fixed light moving across the room. A customizable CrazyGL animated hero section — WebGL, React, drop-in.
Maintainers
Readme
Hero made by @ybouane.
@crazygl/hero-cursor-shadow-text
The heading casts a real drop shadow whose direction tracks the cursor — like a single fixed light moving across the room.
Demo
Install
npm install @crazygl/hero-cursor-shadow-textUsage
import CursorShadowText from '@crazygl/hero-cursor-shadow-text';
export default function Hero() {
return (
<CursorShadowText
heading="follow the light"
shadowColor="#5b8def"
maxOffset={40}
blur={12}
/>
);
}Customise
- Content —
headingtext. - Shadow —
shadowColor,maxOffset(how far the shadow throws at the screen edges),blur. - Typography —
textColor,fontSize,headingFontFamily(Google Font),headingFontWeight. - Backdrop —
transparentBackgroundtoggle andbgColor.
Best for
- Minimal, interactive landing headlines that reward a moving cursor.
- Portfolios and agency sites wanting a tactile, playful headline.
- Product launches where a single bold word should feel physical and lit.
This hero is part of CrazyGL, 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.
