
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
data-ripple
Advanced tools
Inspired by Material Design ripple effect.
Designed to be framework agnostic and work w/ modern SPA where state of app could be changed dynamically over time, so ripple options also will change.
npm i data-ripple
After importing module, declarative approach will find and init all elements w/ data-ripple attribute
import 'data-ripple';
<button data-ripple>Click me</button>
<div data-ripple>Click me</div>
<span data-ripple>Click me</span>
import { rippleEffect, Ripple } from 'data-ripple';
...
const ripple = document.querySelector('#ripple');
new Ripple(ripple, { ... });
function handleMouseDown(e) {
rippleEffect(e);
}
...
<button id="ripple">Click me</button>
<div onmousedown="handleMouseDown(event)">Click me</div>
| Declarative | Imperative | Type | Default | Description |
|---|---|---|---|---|
| color | data-ripple-color | string | contrast (black/white) color for container background, 0.15 opacity | Ripple effect color (rgba, hsla, HEX) |
| timingFunction | data-ripple-timing-function | string | cubic-bezier(0.4, 0, 0.2, 1) | Animation timing function |
| opacity | data-ripple-opacity | number | 1 | Ripple effect opacity value in range 0 - 1 |
| sizeModifier | data-ripple-size-modifier | number | 1 | Modifier for ripple effect size (radius) |
| enterDuration | data-ripple-enter-duration | number | 550 | Value in ms for ripple effect fadeIn animation |
| exitDuration | data-ripple-exit-duration | number | 400 | Value in ms for ripple effect fadeOut animation |
| disableCentering | data-ripple-disable-centering | boolean | false | By default ripple effect animation will start under user mouse position. This option states for all ripples starts directly from container element center |
| fadeOutOnClick | data-ripple-fade-out-on-click | boolean | false | By default ripple effect will start on mouse down and will terminate only on pointe release. This options overrides this behaviour to execute ripple fadeOut directly after fadeIn animation |
This project is licensed under the terms of the MIT license.
FAQs
Universal ripple effect solution
We found that data-ripple demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.