Giter Club home page Giter Club logo

vue-coverflow's Introduction

vue-coverflow

vue-coverflow is a vue2 component to simulate the Apple Cover Flow UI effect, without jQuery.

NPM

Install

npm install vue-coverflow --save

Use

// Use in component
import { coverflow } from 'vue-coverflow'

export default {
  data () {
    return {
      // options
    }
  },
  components: {
    coverflow
  }
}
<coverflow options></coverflow>

Detail please to Live Demo

Options

You can set them to your data function

protype type description example
coverList Array Each object contains two elements, cover is image's url, title will be showed on the bottom of cover(required: true) [{ cover: '', title: ''}]
width Number width of coverflow
bgColor String background color(default: '#fff')
index Number which cover checked(default: 0)
coverWidth Number width of each cover(default: 100px)
coverSpace Number spaceing between two cover(default: 50px)
coverShadow Boolean reflection effect, total height will be changed to two times (default: false)
coverFalt Boolean disable 3D rotation(default: false)

If you change the options you should refresh page, because reload can trigger window.onload

Develop

git clone https://github.com/OrangeXC/vue-coverflow.git

cd vue-coverflow

yarn add
or
npm install

npm run dev

License

The ISC License.

vue-coverflow's People

Contributors

orangexc avatar

Watchers

athiwatp avatar

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.