vs
vue-stroll
npm i vue-stroll
vs

vue-stroll

📜 Vue.js + Stroll.js. Awesome CSS list scroll effects for Vue2.x.

by Yunwei Xiao

0.5.0 (see all)License:MITTypeScript:Not FoundCategories:Vue Misc Visual Effects, Vue Scroll
npm i vue-stroll
Readme

vue-stroll

Travis Build Status npm Download GitHub license GitHub stars

Vue.js + Stroll.js. Awesome CSS list scroll effects for Vue2.x. See Demo

NPM

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

NameTypeDescExample
elStringThe element you will bind"#app ul"
collectionArrayThe list you will render['One', 'Two', 'Three', 'Four', 'Five']
effectStringThe awesome effects stylewave See Demo

License

MIT

Downloads/wk

14

GitHub Stars

155

LAST COMMIT

5yrs ago

MAINTAINERS

1

CONTRIBUTORS

1

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.5.0
latest
5yrs ago
No tutorials found
Add a tutorial