vue-rippler
Version:
Simple Vue.js plugin for custom ripple effect
73 lines (53 loc) • 2.08 kB
Markdown
# vue-rippler 🎉
> Simple Vue.js plugin for custom ripple effect
[](https://vuejs.org/)
[](https://www.npmjs.com/package/vue-rippler)
[](https://www.npmjs.com/package/vue-rippler)
[](https://github.com/vuejs/awesome-vue#miscellaneous)
[](https://github.com/spemer/vue-rippler)
[](https://github.com/spemer/vue-rippler)
[](https://github.com/spemer/vue-rippler)
[Live Demo](https://spemer.github.io/vue-rippler/)
<img src="https://github.com/spemer/vue-rippler/blob/master/docs/src/assets/vue-rippler.gif?raw=true" height="25%" width="25%">
## Installation
```bash
npm i vue-rippler --save
```
```bash
yarn add vue-rippler
```
### CDNs
[jsDelivr](https://cdn.jsdelivr.net/npm/vue-rippler/),
[UNPKG](https://unpkg.com/vue-rippler/),
[bundle.run](https://bundle.run/vue-rippler)
## Usage
### main.js
```javascript
// main.js
import Vue from "vue";
import VueRippler from "vue-rippler";
Vue.use(VueRippler);
```
### Use in component
```javascript
// .vue template
<template>
<my-component ripple />
</template>
```
### Set ripple style, and customize as you want(Optional)
```css
<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>
```
## Author
[Hyouk Seo(Spemer)](https://github.com/spemer)