Coder Social home page Coder Social logo

shanamaid / vue-image-scroll Goto Github PK

View Code? Open in Web Editor NEW
77.0 7.0 24.0 557 KB

a good vue-image-scroll component!

Home Page: http://blog.shanamaid.top/vue-image-scroll/example/

License: MIT License

Vue 96.50% HTML 3.50%
vue slider pic img 163music component scroll github-page vue2 imgae

vue-image-scroll's Introduction

vue-image-scroll

build build download

NPM

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

Live Demos

Documention

based on vue 2.0

Install

npm install vue-image-scroll 

Local

git clone  https://github.com/ShanaMaid/vue-image-scroll.git

#安装依赖
npm install 

#启动
npm run dev

Usage

<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>          

Update

  • finish basics
  • image add tagName and tagStyle

Opitions

Props

Props Type Default Description
styleObject Object {width:'750',height:'240'} scroll box style,please use lower camel case, eg: background-color => backgroundColor
image Array null imgae source path ,tagName,tagStyle; length >= 3
interval Integer 2000 unit: ms, rolling interval
imgStyle Object null image style, the same as styleObject
autoRoll Boolean true true or false
direction String left scroll direction, left or right

To do

  • Basics
  • add tag for image

more!!

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.