rippleonclick

1.0.2 • Public • Published

Ripple effect on click of the element.

Light weight Javascript based library to enhance the user experience.

Get the material design ripple effect on button click or the elements which supports them.

Installation

npm i rippleonclick --save

Usage

Include the minified Javascript file before closing the <body> tag

<html lang="en">
<head>
  ...Your code...
</head>
<body>
    <div class="ripple">....</div>
    ...any code 
    ...any code
    
    <script src="ripple.min.js"></script>
</body>
</html>

Use the classname ripple to get the beautiful ripple effect at the clicked position.

To change the color and delay of the ripple add an extra class to the element, then do the modifications.

demo on codepen: https://codepen.io/varoonrao/pen/jOmwzdK

Package Sidebar

Install

npm i rippleonclick

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

2.44 kB

Total Files

3

Last publish

Collaborators

  • varoonrao