Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

mk668a/lighting-element

Repository files navigation

lighting-element

Click-triggered lightning canvas effect for any DOM element.

demo

Repository layout

This is a bun workspaces monorepo.

  • packages/lighting-element — the library
  • examples/example — vanilla HTML/TS demo
  • examples/react — React demo

Getting started

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

Library usage

import 'lighting-element'

Add the lighting-element class to any element you want the effect on:

<button class="lighting-element">click me</button>

Scripts (root)

  • bun run eslint — lint TS/JS sources
  • bun run stylelint — lint CSS
  • bun run reset — clean all node_modules and the lockfile

About

Click-triggered lightning canvas effect for any DOM element.

Topics

Resources

Stars

Watchers

Forks

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /