Ribble is a vanilla JavaScript plugin that applies a Material Design ripple/click effect to any DOM element you select.
javascript ripple effect, ripple effect, jquery ripple effect, ripple effect android
Ripple Effect Based on Material Design In jQuery | Ripple.js
How to make use of it:
1. Download and import the Ribble library into the document.
<script src="dist/ribble.js"></script>
2. Attach the Ribble to any item you like.
<div class="demo" id="example"></div>
var myElement = document.getElementById("example"); Ribble.attachEvent(myElement)
3. Customize ripple effect.
Ribble.attachEvent(myElement, { // duration in milliseconds duration: 400, // z-index zIndex: "9999", // background color bgColor: "currentColor", // max opacity level maxOpacity: "0.4", // easing function easing: "cubic-bezier(0.4, 0, 0.2, 1)" })
4. Change the default events trigger.
Ribble.attachEvent(myElement, { // options here }, // default: ['mousedown', 'touchstart'] triggers)
interactive click/tap ripple effect, ribble Plugin/Github
See Demo And Download
Official Website(nash403): Click Here
This superior jQuery/javascript plugin is developed by nash403. For extra advanced usage, please go to the official website.