0.0.7 • Published 9 years ago
vuey v0.0.7
vuey
personal collection of components
Usage
Currently there is only the ripple
directive availaible.
ripple directive
You can check the specification here. First of all include the plugin.
import Vue from 'vue'
import vuey from 'vuey'
Vue.use(vuey)
And add the stylesheet
<link rel="stylesheet" type="text/css" id="vuey" href="node_modules/vuey/dist/vuey.min.css">
Now the directive is ready to use with its default values
<template>
<button v-ripple></button>
</template>
Or you can customize any of the default options availaibles
<template>
<button></button>
</template>
<script>
export default {
ripple: {
color: '#e3e3e3',
speed: 2
}
}
</script>
Those options will modify all the ripple
directives, you can use modifiers for specific animations on specific elements
<template>
<button v-ripple.blue></button>
</template>
Contribution
- Fork it !
- Create your top branch from
dev
:git branch my-new-topic origin/dev
- Commit your changes:
git commit -am 'Add some topic'
- Push to the branch:
git push origin my-new-topic
- Submit a pull request to
dev
branch ofYerkoPalma/vuey
repository !