1.1.0 • Published 6 years ago

coverflow-reactjs v1.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

cycled【false】

cycled【true】

Install

npm install coverflow-reactjs --save

Params

nametyperequiredexplaindefaultValue
hasLabelbooleanfalseWhether to include the 'label' parametersfalse
labelFontSizenumberfalseLable font size14
itemsarraytrueArray of objects, coverflow items[]
styleobjectfalseComponent style{}
onClickfunctionfalseClick on the item's callbacknull
BoxWidthnumberfalseThe width of the container100
BoxHeightnumberfalseThe height of the container100
ItemWidthnumberfalseThe width of the img100
ItemHeightnumberfalseThe height of the img100
differWidthnumberfalseThe distance between items40
differFromActivenumberfalseActiveitem distance from left/right item40
cycledbooleanfalseWhether loop playbackfalse

items

nametyperequiredexplaindefaultValue
idnumbertrueMark item for click operationundefined
srcstringtrueImg urlundefined
classNamestringfalseItem calssnamenull
labelstringfalseItem label textnull

Demo

index.jsx

import Coverflow from 'coverflow-reactjs';

<Coverflow
  items={ items }
  style={ { margin: '0 auto', background: '#999' } }
  hasLabel boxWidth={ 500 } boxHeight={ 250 }
  itemWidth={ 120 } itemHeight={ 120 }
/>

style.less

@import '../../node_modules/coverflow-reactjs/lib/style.css';
1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago