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

wave-effect

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wave-effect

click wave effect

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

wave-effect

click wave effect with CSS animation.

Install

npm install wave-effect
yarn add wave-effect

Usage

import wave,{ clearEffect } from 'wave-effect'
import 'wave-effect/dist/wave.css'

const button = document.getElementById("button")

wave(button)

// clear effect
clearEffect(button)

API

wave(element: Element, options?: WaveOptions)

WaveOptions

interface WaveOptions {
  // current wave effect color
  waveColor?: string 
  // if element includes these className, click doesn't trigger effect
  disabledClass?: string[] 
}

Customize Style

you can override less variables to customize style.

@import "~wave-effect/src/wave.less";

@wave-color: red;
@wave-animation-width: 20px;

or use css variables.

:root {
  --wave-shadow-color: red;
  --wave-animation-width: 20px;
}

Licence

MIT

Keywords

wave

FAQs

Package last updated on 09 May 2021

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