Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🔆 Vue coverflow component(vue)

License

NotificationsYou must be signed in to change notification settings

OrangeXC/vue-coverflow

Repository files navigation

vue-coverflow logo

Build StatusCoverage StatusNpm downloadNpm versionGitHub License

Introduction

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

Install

npm i vue-coverflow# oryarn add vue-coverflow

Use

// Use in componentimportcoverflowfrom'vue-coverflow'exportdefault{components:{    coverflow}}// Use in globalimportcoverflowfrom'vue-coverflow'Vue.component(coverflow.name,coverflow)// orVue.use(coverflow)
<coverflow[options]></coverflow>

Options

Attributes

You can set them to your data function

AttributeTypeDescriptionExample
coverListArrayEach object contains two elements, cover is image's url, title will be showed on the bottom of cover(required: true)[{ cover: '', title: ''}]
widthNumberwidth of coverflow(default: 980)
bgColorStringbackground color(default: 'transparent')
indexNumberwhich cover checked(default: 0)
coverWidthNumberwidth of each cover(default: 100)
coverHeightNumberheight of highest cover(default: coverWidth)
coverSpaceNumberspaceing between two cover(default: 50)
coverShadowBooleanreflection effect, total height will be changed to two times (default: false)
coverFaltBooleandisable 3D rotation(default: false)

Events

Event NamedescriptionParameters
changetriggers when the selected cover changesthe index of the curent cover

Develop

$ git clone https://github.com/OrangeXC/vue-coverflow.git$cd vue-coverflow$ yarn$ yarn serve

License

Vue-coverflow isMIT licensed.


[8]ページ先頭

©2009-2025 Movatter.jp