vue3-ripple
vue3-ripple
This package provide directive for ripple effect on click
Installation
npm install vue3-ripple
Basic usage
import { createApp } from "vue";
import App from "./App.vue";
import { ripple } from "vue3-ripple";
const app = createApp(App);
app.directive("ripple", ripple);
app.mount("#app");
<button class="btn" v-ripple>
click
</button>
Default color rgba(226, 237, 255, 0.5)
Modify color
<button class="btn" v-ripple="{color: 'rgba(0, 0, 0, 0.5)'}">
click
</button>
Related Packages
vue-timer-hook
Vue 3 composition API hooks for countdown timers, stopwatches, and live clock st...
189,124
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.8 | ^3.2.45 | ||
| 1.0.7 | ^3.2.45 | ||
| 1.0.6 | ^3.2.45 | ||
| 1.0.5 | ^3.2.45 | ||
| 1.0.4 | ^3.2.45 | ||
| 1.0.3 | ^3.2.45 | ||
| 1.0.2 | ^3.2.45 | ||
| 1.0.1 | ^3.2.45 | ||
| 1.0.0 | ^3.2.45 |