vue-stroll
Vue.js + Stroll.js
1,138
161
| Install | |
|---|---|
npm install vue-stroll |
|
| Latest Version: | 0.5.0 |
| Vue: | 2 |
| Older releases: | 1 |
| License: | MIT |
| Last Updated: | Jun 29, 2017 |
| Links: | GitHub · npm |
Maintainer: xiaoluoboding
vue-stroll
Vue.js + Stroll.js. Awesome CSS list scroll effects for Vue2.x. See Demo
Installation
npm i vue-stroll -S
CDN
Use this URL for development
https://rawgit.com/xiaoluoboding/vue-stroll/master/dist/vue-stroll.min.js
Use this URL in production
https://cdn.rawgit.com/xiaoluoboding/vue-stroll/master/dist/vue-stroll.min.js
Import
ES6
import VueStroll from 'vue-stroll'
CommonJS
var VueStroll = require('vue-stroll');
script
<script type="text/javascript" src="vue/dist/vue.min.js"></script>
<script type="text/javascript" src="vue-stroll/dist/vue-stroll.min.js"></script>
<script type="text/javascript">
var VueStroll = window['vue-stroll'];
</script>
Usage
script
new Vue({
el: 'body',
data: {
el: '#app ul',
effect: 'cards',
collection: [
'One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten'
]
},
components: { VueStroll }
});
html
<!-- Dynamic props -->
<vue-stroll :el="el" :collection="collection" :effect="effect"></vue-stroll>
Props
| Name | Type | Desc | Example |
|---|---|---|---|
| el | String | The element you will bind | "#app ul" |
| collection | Array | The list you will render | ['One', 'Two', 'Three', 'Four', 'Five'] |
| effect | String | The awesome effects style | wave See Demo |
License
MIT
Related Packages
vue-dragscroll
vue directive to make a scrollable element scroll by draging to the scroll direc...
1,541,547
264
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.5.0 | ^2.3.3 | MIT | |
| 0.4.0 | ^1.0.0 | MIT | |
| 0.3.0 | ^1.0.0 | MIT | |
| 0.2.0 | ^1.0.0 | MIT | |
| 0.1.0 | ^1.0.0 | MIT |
