项目作者: japick

项目描述 :
Mouseover gallery plugin for Vue.js
高级语言: Vue
项目地址: git://github.com/japick/vuerollr.git
创建时间: 2020-06-23T07:49:13Z
项目社区:https://github.com/japick/vuerollr

开源协议:MIT License

下载


VueRollr

VueRollr is a lightweight plugin that allows you to add a mouseover gallery to your Vue.js project. Supported media now includes images and video.

Demo

Installation

npm i vuerollr

Usage

  1. <template>
  2. <div>
  3. <VueRollr>
  4. <img src="...">
  5. <img src="...">
  6. <img src="...">
  7. <video loop autoplay muted>
  8. <source src="...">
  9. </video>
  10. <img src="...">
  11. <img src="...">
  12. <img src="...">
  13. </VueRollr>
  14. </div>
  15. </template>
  16. <script>
  17. import VueRollr from 'vuerollr'
  18. export default {
  19. components: {
  20. VueRollr
  21. }
  22. }
  23. </script>

Options

  1. <VueRollr
  2. :breakpoint="530"
  3. :speed="2000">
  • breakpoint - autoplay breakpoint default: 768
  • speed - autoplay speed in milliseconds default: 1000

License

MIT