New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

click-spark

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

click-spark

A web component that adds a little spark to your clicks

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
0
Created
Source

click-spark

Add a little spark to your clicks. ✨

CodePen demo | Blog post

Install

npm install click-spark

Or you can download the click-spark.js file from this repo and add it to your project.

Usage

Add the custom element wherever we want to see sparks fly.

<script type="module" src="click-spark.js"></script>

<body>
  <!-- only add sparks within this container -->
  <div class="container">
    <click-spark></click-spark>
  </div>

  <!-- sparks appear everywhere we click -->
  <click-spark></click-spark>
</body>

Change spark color

Set a spark color via CSS custom property:

<click-spark style="--click-spark-color: blue"></click-spark>

FAQs

Package last updated on 27 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts