Vue.js + Stroll.js. Awesome CSS list scroll effects for Vue2.x. See Demo
npm i vue-stroll -S
https://rawgit.com/xiaoluoboding/vue-stroll/master/dist/vue-stroll.min.js
https://cdn.rawgit.com/xiaoluoboding/vue-stroll/master/dist/vue-stroll.min.js
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>
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>
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 |
MIT