Effects / Neon
The shader effect puts a flickering Neon effect around a component. It listens to an intersection observer and switches off the neon effect if the component is off the screen.
Options
Option | What it does |
---|---|
size | Size of the neon effect |
Example
Example Code
import Tile from "../../components/Tile.js";
import withNeon, { fx } from "react-neon";
const effect = new fx.Neon({ size: 10 });
const Neon = withNeon(Tile, effect);