ion-ripple
A pure javascript (no polymer, no jQuery) Ionic directive that adds a Google Material Design ripple effect when clicked or touched based on angular-ripple.
Bower
bower install --save ion-ripple
NPM
npm install --save ion-ripple
Usage
Include the script in your HTML
Also you can import ripple scss
file into your app styles
@import '../lib/ion-ripple/ion-ripple';
There are some default SASS variables available that can be overriden:
$ion-ripple-color: #fff !default;
$ion-ripple-duration: .45s !default;
Then include ionMDRipple
in your module dependencies
angular;
Then add the ion-ripple
attribute to elements
Ripple!
Also you can specify ripple effect color with ion-ripple-color
attribute.
Ripple!