Material Ripple Effect Directive For Vue | v-wave

v-wave is a full-featured material design double-click animation application that is as easy to use as a Vue.js directive.

Here’s what you can expect from this plugin:

  • The wave appears on the pointer down instead of the pointer
  • There is a slight delay before the ripple appears, during which the animation is canceled if the user moves the cursor (like scrolling on a mobile phone). This is similar to how the original Android Ripples work.
  • It uses CSS transformations instead of width and height.
  • It does not affect the appearance of the element you are applying it to (it will not explode when used on an element with display: flex).
  • It guesses the wave color automatically by default (using CurrentColor).
  • Works with fixed, absolute, relative, and fixed positions.
  • It will handle independent border radii (eg border-radius: 5px 20px 15px 30px) just fine.

How to make use of it:

1. Import v-wave.

import Vue from 'vue'
import VWave from 'v-wave'

2. Register the v . wave

// register
Vue.use(VWave)

// for nuxt.js
export default {
  modules: ['v-wave/nuxt']
}

3. Attach a material ripple effect to an element.

<button v-wave>Click me!</button>

4. All possible options.

Vue.use(VWave,{
  directive: 'wave',
  color: 'currentColor',
  initialOpacity: 0.2,
  finalOpacity: 0.1,
  duration: 0.4,
  easing: 'ease-out',
  cancellationPeriod: 75
})

Summary

NameDefaultType
color"currentColor"string
initialOpacity0.2number
finalOpacity0.1number
duration0.4number
dissolveDuration0.15number
easingease-outstring
cancellationPeriod75number
trigger"auto"string | boolean | "auto"
tagName"div"string

See Demo And Download

Official Website(justintaddei): Click Here

This superior jQuery/javascript plugin is developed by justintaddei. For extra Advanced Usage, please go to the official website.

Related Posts

HStack-and-VStack-in-CSS

CSS Layout Components Horizontal/Vertical Stack | HStack and VStack

HStack and VStack in CSS – CSS layout components that (basically) stack anything horizontally and vertically. A pure CSS library that makes it easy to stack elements…

Floating-Whatsapp-Chat-Button

How to Add Floating Whatsapp Chat Button In HTML | venom-button

Venom Button is a very simple plugin for the jQuery floating WhatsApp button. Adds a floating button to your site that calls WhatsApp Click to Chat API. It will automatically start the WhatsApp…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…

alert-confirm-prompt-attention-js

Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…

Bootstrap-4-Sidebar-Menu-Responsive-Template

Bootstrap 4 Sidebar Menu Responsive Template | MDB

Bootstrap Side Navbar – Responsive sidebar template based on the Bootstrap 4 framework. An easy-to-use, totally responsive, Google Material Design impressed aspect navigation for modern web app…

Bootstrap-4-Toast-Notification-Plugin

Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…

Leave a Reply

Your email address will not be published. Required fields are marked *