仿网易云音乐的 vue 图片滚动插件 vue-image-scroll

码农软件 · 软件分类 · 图形/图像处理 · 2019-09-05 17:29:34

软件介绍

vue-image-scroll

一个模仿网易云音乐的 vue 图片滚动插件

安装

npm install vue-image-scroll 

使用方法

    <template>
      <div>
       <slider v-bind="setting">
      </div>
    </template>

    <script>
    import slider from 'vue-image-scroll';

    export default {
      components: {
        slider
      },
      data: function() {
        return {
          setting: {
            image: ['1.jpg', '2.jpg', '3.jpg']
          }
        }
      }
    }
    </script>

默认值

  {
    styleObject:{
       width: '750',
       height: '250'
    }, //滚动框样式 宽度默认750px 高度默认250px 其余样式小驼峰命名
        background-color => backgroundColor
    image: null, //图片数组
    interval:2000, //滚动间隔,单位ms,默认2000
    imgStyle:null,//图片样式,宽度和高度不可设置,样式名字小驼峰命名
    autoRoll:true, //自动滚动
    direction:left //滚动方向, left or right
  }

示例

本文地址:https://www.codercto.com/soft/d/13946.html

Practical Django Projects, Second Edition

Practical Django Projects, Second Edition

James Bennett / Apress / 2009 / 44.99

Build a django content management system, blog, and social networking site with James Bennett as he introduces version 1.1 of the popular Django framework. You’ll work through the development of ea......一起来看看 《Practical Django Projects, Second Edition》 这本书的介绍吧!

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换