Ripple Effect Based on Material Design In jQuery | Ripple.js

Ripple effect is based on a material design made with CSS, JavaScript, jQuery selectors, and DOM manipulation for a very precise effect with respect to the original.

Powered by CSS animation and a bit of jQuery code. Easy to implement with CSS classes only.

forthebadge

ClassIt is made
ripple-effectAdds the effect to the component
ripples-lightChanges the color of the effect to its light version
ripples-dark (default)Changes the color of the effect to its dark version

How to make use of it:

1. Insert the jQuery library and the Ripple.js plugin’s files into the HTML doc.

<link rel="stylesheet" href="/path/to/ripples.css" />
<script src="/path/to/cdn/jquery.slim.min.js"></script>
<script src="/path/to/ripples.js"></script>

2. Add the CSS class ripple-effect to the goal component and the plugin will handle the remaining.

<button class="ripple-effect">
  Ripple Effect
</button>

<div class="ripple-effect">
  Div element is supported as well
</div>

3. Change the theme to darkish utilizing the ripples-dark class.

<button class="ripple-effect ripples-dark">
  Ripple Effect
</button>

<div class="ripple-effect ripples-dark">
  Div element is supported as well
</div>

4. Customize the Material ripple impact by overriding the default CSS styles as proven below.

.ripple {
  background-color: rgba(255, 255, 255, 0.16);
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  -webkit-transition: .6s;
  transition: .6s;
  -webkit-animation: ripple 0.3s ease-out;
  animation: ripple 0.3s ease-out;
}

@-webkit-keyframes ripple {
  from {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes ripple {
  from {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

Material Ripple Effect In jQuery, Ripple effect Plugin/Github


See Demo And Download

Official Website(gabrielfins): Click Here

This superior jQuery/javascript plugin is developed by gabrielfins. For extra advanced usage, please go to the official website.

Related Posts

Bootstrap-Dark-Mode

Stylesheet For Implementing Dark Mode with Bootstrap

Bootstrap Dark Mode provides a style sheet and two texts that allow you to implement Dark Mode on your website. Initially loaded based on user preferences, can…

responsive-navigation-menu

Multi-purpose Navigation Menu for Javascript Library | jQuery Corenav

coreNavigation is a multipurpose navigation menu for a jquery based javascript library, comes with more style, and is easy to integrate. 11 Default Menu 2 Responsive Navigation…

Simple-Multi-Select-Dropdown-Pure-Vanilla-Javascript

Simple Multi-Select Dropdown Pure Vanilla Javascript | multiSelect.js

MultiSelect.js is a simple, clean, and progressive JavaScript library designed for easy integration with any type of project or system. The design was heavily influenced by the…

Confetti-Falling-Animation-Effect-party

Confetti Falling Animation Effect In JavaScript | party.js

Party.js is a JavaScript library to brighten user site experience with visual effects! Celebrate success with dom confetti! The library is written in TypeScript and compiled into…

how-to-create-popup-in-html-with-css

How To Create A Popup in HTML with CSS

How to create popup in html with css – Popup without JavaScript is an elegant pop-up panel component with an animated scale, written in CSS. Have you…

responsive-lightbox-image-gallery-jquery

Responsive Image Gallery & Lightbox Plugin using Bootstrap

Bootstrap Gallery With this script and Bootstrap 4, you can easily create an image gallery. You just have to put the thumbnails on the page. The BS Gallery…