All Projects → PygmySlowLoris → Vue Ripple Directive

PygmySlowLoris / Vue Ripple Directive

Licence: mit
Material Ripple Effect as Vue Directive.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vue Ripple Directive

cashuwallet
Cashu is a cryptocurrency wallet for smartphones. Be your own bank. Accept payments or spend crypto directly from your phone.
Stars: ✭ 35 (-86.84%)
Mutual labels:  ripple
TheWorldExchange
A purely client-side wallet and direct interface showcasing the full functionality of Ripple / blockchain.
Stars: ✭ 34 (-87.22%)
Mutual labels:  ripple
RippleView
ripple view
Stars: ✭ 118 (-55.64%)
Mutual labels:  ripple
RippleBackground
Ripple animation
Stars: ✭ 32 (-87.97%)
Mutual labels:  ripple
xrpl-dev-portal
Source code for xrpl.org including developer documentation
Stars: ✭ 330 (+24.06%)
Mutual labels:  ripple
Android-Animated-Theme-Manager
create your custom themes and change them dynamically with ripple animation
Stars: ✭ 540 (+103.01%)
Mutual labels:  ripple
CoinGecko
A C++20 library for CoinGecko--a cryptocurrency data service.
Stars: ✭ 69 (-74.06%)
Mutual labels:  ripple
v-lazy-img
simplistic vue.js directive for image lazy loading
Stars: ✭ 25 (-90.6%)
Mutual labels:  vue-directive
react-touch-ripple
Create ripple effect from Material Design with React
Stars: ✭ 27 (-89.85%)
Mutual labels:  ripple
variantwind
Most elegant way to work with TailwindCSS variants in Vue
Stars: ✭ 45 (-83.08%)
Mutual labels:  vue-directive
FFF Protocol Core
FFF as a new generation of the underlying chain technology, applying power block chain of innovation and fall to the ground, will help the industry standard. FFF consensus mechanism: the application of a new work-proof mechanism, network contribution proof mechanism, refers to the contribution ability of servers, PC and other devices to improve …
Stars: ✭ 5 (-98.12%)
Mutual labels:  ripple
material-ripple
💧 Material Design Ripple effect with jQuery and CSS
Stars: ✭ 20 (-92.48%)
Mutual labels:  ripple
LoadersPack-Android
Android LoadersPack - a replacement of default android material progressbar with different loaders
Stars: ✭ 119 (-55.26%)
Mutual labels:  ripple
touchMyRipple
A simple library for apply the ripple effect where you want
Stars: ✭ 19 (-92.86%)
Mutual labels:  ripple
crypto-quotes
100+ Best of Crypto Quotes - I HODL, you HODL, we HODL! - BREAKING: BITCOIN JUST BROKE $22 000!
Stars: ✭ 12 (-95.49%)
Mutual labels:  ripple
CryptoCurrency
Page to keep track of value & profits of a portfolio of cryptocurrency (based on Coinmarketcap, Bitfinex and Binance)
Stars: ✭ 27 (-89.85%)
Mutual labels:  ripple
artunis-mobile
XRP Wallet app for Android and iOS, built in React Native.
Stars: ✭ 23 (-91.35%)
Mutual labels:  ripple
explorer
Open Source XRP Ledger Explorer
Stars: ✭ 18 (-93.23%)
Mutual labels:  ripple
crypto-database
Database for crypto data, supporting several exchanges. Can be used for TA, bots, backtest, realtime trading, etc.
Stars: ✭ 72 (-72.93%)
Mutual labels:  ripple
Ripple.js
Proper Material Design ripple effect for the web, that wouldn't interfere your elements' DOM.
Stars: ✭ 18 (-93.23%)
Mutual labels:  ripple

Material Ripple Effect

Material Ripple Effect as Vue Directive.

This directive it's meant to be used in any element in which you like to achieve such ripple effect.

Live Demo

Installation

npm install vue-ripple-directive --save

Important Notice

The directive will work better if the element where you attach it is relative positioned. Although the directive will try to set position: relative if the element does not have this property. This is because since v2.0.* the ripple directive changed its positioning method to avoid trailing issues when elements in the UI move, causing the ripple to stay in previous position and not in the one that element moved to.

Options

Optional parameter to pass to the directive.

Parameter Type Values
color-value String Default: 'rgba(0, 0, 0, 0.35)'.
Accepts either HEX, RGB & RGBA values. For optimal look use RGBA with low opacity.

Modifiers

By default this directive attaches a click handler to the element as well as the transition is set for 600ms. For those who wants to modify the same, just pass modifiers to the directive:

v-ripple.mouseover.500

Can also modify only one

v-ripple.mouseover

Sample & Usage

First you need to import the directive and add it to Vue.

import Ripple from 'vue-ripple-directive'

Vue.directive('ripple', Ripple);

Then use on any element you want to achieve the effect.

<div v-ripple class="button is-primary">This is a button</div>

If you want a custom color just pass a color parameter as string. It's best if you use RGBA colors to achieve a greater effect.

<div v-ripple="'rgba(255, 255, 255, 0.35)'"  class="button">I have different color</div>

Global settings

You can set the default color and z-index for all your ripples as the following example

import Ripple from 'vue-ripple-directive'

Ripple.color = 'rgba(255, 255, 255, 0.35)';
Ripple.zIndex = 55;
Vue.directive('ripple', Ripple);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].