Questions tagged [ripplejs]

jakiestfu/Ripple.js - Adds Material style ripple to anything

Demo: http://jakiestfu.github.io/Ripple.js/demo/
GitHub: https://github.com/jakiestfu/Ripple.js

Usage: Include jQuery, the ripple.css, and ripple.js into your page. Then upon initialization, you can activate ripple using $.ripple(selector,options):

Stack Snippet Starter Pack

HTML

<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/Ripple.js/1.2.1/ripple.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Ripple.js/1.2.1/ripple.js"></script>

<button class="btn btn-primary btn-lg" >Click Me</button>

JavaScript

$.ripple(".btn", {
  on: 'mousedown', // The event to trigger a ripple effect
  opacity: 0.4,    // The opacity of the ripple
  color: "auto",   // Set the background color. "auto" will use the text color
  duration: 0.7,   // The duration of the ripple
  easing: 'linear' // The CSS3 easing function of the ripple
});
4 questions
1
vote
1 answer

Disable 'Ripple' effect of Angular Meterial Stepper component (when clicking on Tab)

I have an app that uses Angular Material Stepper component. How can I disable 'ripple' behavior on click by step tabs without CSS-hacks? Thanks!
0
votes
1 answer

How to add ripple effect on the header

I have to build a website where in the header or in the first page of the website I need to use ripple effect I still don't get it where I am doing something wrong. Down here is the code: This is css: #header { top: 15px; height: 70px; …
user13509756
0
votes
1 answer

Button Click doesn't fire when using ripple-js in Angular

I am using ripple-js library from here in my Angular 5 project. As soon as I add the ripple class to my buttons, the ripple effect starts working, however the button click stops firing. Here's a sample HTML of my button -
Nitesh
  • 2,286
  • 2
  • 43
  • 65
0
votes
1 answer

Programmatically invoke rippleJs

Ripple.JS (GitHub | Demo | CDN) adds a Material style ripple to HTML Elements like this: $.ripple(".btn", { on: 'mousedown', // The event to trigger a ripple effect opacity: 0.4, // The opacity of the ripple color: "auto", // Set the…
KyleMit
  • 30,350
  • 66
  • 462
  • 664