md-ripple

0.1.0 • Public • Published

md-ripple

Lightweight implementation of the Material Design ripple effect

Usage

<div id="button" class="ripple-container">
  <span>buttonLabel</span>
</div>
 
<script type="text/javascript">
  const ripple = require('md-ripple');
  const button = document.getElementById('button');
 
  button.addEventListener('mousedown', ripple);
</script> 

License

MIT © Iegor Azuaga

/md-ripple/

    Package Sidebar

    Install

    npm i md-ripple

    Weekly Downloads

    0

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • underc0de