Skip to content

[PUBLIC DOMAIN SOFTWARE - THE UNLICENSE] Vanilla JS: Extension of @luncheon/ripplet.js. Makes every element with the "ripple" attribute ripple!

License

Notifications You must be signed in to change notification settings

fakerybakery/ripple.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ripple.js

Extension of @luncheon/ripplet.js. Makes every element with the "ripple" attribute ripple!

Usage

The easy way

I combined both ripplet.js and ripple.js into one file (r.js) to make everything easier:

<script src="r.js"></script>
<button ripple>Click Me</button>

Note: r-disabled.js disables ripple on disabled buttons.

[NEW] Or use the CDN

<script src="https://cdn.jsdelivr.net/gh/fakerybakery/ripple.js/r.js"></script>

<script src="https://cdn.jsdelivr.net/gh/fakerybakery/ripple.js/r-disabled.js"></script>

The hard way

<script src="ripplet.js"></script>
<script src="ripple.min.js"></script>
<button ripple>Click Me</button>

Important!

(If you're using The hard way): Make sure you've first included ripplet.js before including ripple.js!

License

(Modified) Unlicense. Changes: remove link to website, add optional attribution

About

[PUBLIC DOMAIN SOFTWARE - THE UNLICENSE] Vanilla JS: Extension of @luncheon/ripplet.js. Makes every element with the "ripple" attribute ripple!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages