vue3-touch-ripple
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

Vue3-Touch-Ripple

Touch ripple component for Vue 3.x.

Install

CDN

<script type="text/javascript" src="https://unpkg.com/vue3-touch-ripple/"></script>
<script type="text/javascript">
  Vue.use(window.VueTouchRipple, /* { default global options } */)
</script>

NPM

npm install vue3-touch-ripple --save

Mount with component

import { touchRipple } from 'vue-touch-ripple'
import 'vue-touch-ripple/dist/vue-touch-ripple.css'

export default {
  components: {
    touchRipple
  }
}

Component

<template>
  <touch-ripple :speed="1" :opacity="0.3" color="#fff" transition="ease">
     <!-- your element... -->
     <h1>it's a h1 title</h1>
     <div>it's a div block</div>
  </touch-ripple>
</template>

Options

prop type default
speed Number 1
color String #fff
opacity Number 0.3
transition String ease-out

Package Sidebar

Install

npm i vue3-touch-ripple

Weekly Downloads

2

Version

1.1.4

License

MIT

Unpacked Size

38.5 kB

Total Files

9

Last publish

Collaborators

  • ejirocode