Get started with Ripple.js CDN

MIT licensed

Ripple.js is a library for creating custom, animated form inputs and interactions.

Tags:
  • ripple
  • animation
  • effects
  • style
  • event
  • buttons

Stable version

Copied!

How to start using Ripple.js CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with Ripple.js CDN - cdnhub.io</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-lite/1.3.0/material.indigo-pink.min.css">
  <script src="https://cdn.cdnhub.io/Ripple.js/1.2.1/ripple.min.js"></script>
</head>
<body>
  <button class="mdl-button mdl-js-button mdl-button--raised mdl-js-ripple-effect mdl-button--accent" id="my-button">
    Click me
  </button>

  <script>
    document.addEventListener('DOMContentLoaded', function() {
      M.AutoInit();
      new Ripple(document.querySelectorAll.bind(document, 'button'));
    });
  </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions