Simple Vue.js plugin for custom ripple effect
npm i vue-rippler --saveyarn add vue-rippler// main.js
import Vue from "vue";
import VueRippler from "vue-rippler";
Vue.use(VueRippler);// .vue template
<template>
<my-component ripple />
</template><style>
/*
play with some lines below
*/
[ripple] .ripple--container .ripple--body {
opacity: 0.5 !important;
background-color: rgba(0, 0, 0, 0.1) !important;
-webkit-animation: rippler 1000ms;
animation: rippler 1000ms;
}
</style>