šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

mdl-ripple

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdl-ripple

Material design ripple effect

0.0.5
latest
Source
npm
Version published
Weekly downloads
1
-83.33%
Maintainers
1
Weekly downloads
Ā 
Created
Source

mdl-ripple

Adapt material design lite code to be able to add ripple effect on any dom element.

Install

npm install --save mdl-ripple

API

import Ripple from './ripple.js';

const item = document.querySelector('li');

const rippleItem = Ripple(item, {
  background: 'red',
  duration: '2s'
});

// Unbind events
rippleItem.downgrade();

Or by triggering ripple effet manually:

const ripple = Ripple(item, {
  background: 'blue',
  duration: '2s',
  ignoreEvents: true
});

item.addEventListener('touchstart', ripple.trigger, false);

item.addEventListener('mousedown', ripple.trigger, false);

Keywords

material

FAQs

Package last updated on 25 Nov 2015

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