0.4.6 • Published 7 years ago

ripley-effect v0.4.6

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

Ripley, just another material ripple effect plugin

Demo

JSFiddle

Usage

Include Ripley in your HTML.

<script src="ripley.min.js"></script>

It will collect all elements with class ripley on DOMContentLoaded event.

<button class="ripley">My ripley button</button>

Alternatively you can do this manually on a single element. This will recieve ripley class.

<button id="ripleyWannabe">My ripley wannabe button</button>
<script src="ripley.min.js"></script>
<script>
    ripley.add(document.getElementById('ripleyWannabe'));
</script>

Or multiple elements. These will recieve ripley class.

<button>My ripley wannabe button</button>
<button>And his mate</button>
<script src="ripley.min.js"></script>
<script>
    document.querySelectorAll('button').forEach((element) => ripley.add(element));
</script>

Colors

Currently Ripley uses the elements calculated color property, with an alpha of 0.2;

Building

After checkout run the following command, which will launch webpack.

$ npm run build

Notes

  • The element will recieve the class ripley which will cause it to have position: relative to allow the effect match the size of the element.
  • IE and Edge browsers are not supported yet.
0.4.6

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago