Skip to content

yscoder/vue-directive-waves

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-directive-waves

Use the wave effect in Vue2. Based on Waves.

Vue1.x see the 1.0 Tag.

Install

npm install vue-directive-waves --save

Example

Add directive in the template.

<template>
    <button v-waves></button>
</template>

References in the script.

var Vue = require('vue');
var Waves = require('vue-directive-waves');

Vue.use(Waves);

Modifiers

Default modifiers is v-waves.block.

<button v-waves.button></button>
<button v-waves.button.float></button>
<button v-waves.button.light></button>

<span v-waves.circle></span>
<span v-waves.circle.float></span>
<span v-waves.circle.light></span>

<div v-waves.block></div>
<div v-waves.block.float></div>

Config

Same as Waves.

Vue.use(Waves, {
    duration: 500,
    delay: 200
});

License

MIT

About

Use the wave effect in Vue. Based on Waves.

Resources

License

Stars

Watchers

Forks

Packages

No packages published