Click-triggered lightning canvas effect for any DOM element.
This is a bun workspaces monorepo.
packages/lighting-element— the libraryexamples/example— vanilla HTML/TS demoexamples/react— React demo
bun install
Run a demo:
bun --filter lighting-element-example dev bun --filter react-example-app dev
Build the library:
bun --filter lighting-element build
import 'lighting-element'
Add the lighting-element class to any element you want the effect on:
<button class="lighting-element">click me</button>
bun run eslint— lint TS/JS sourcesbun run stylelint— lint CSSbun run reset— clean all node_modules and the lockfile