0.1.3 • Published 2 years ago

react-360-view-simple v0.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-360-view

Features

  • 360° View

Installation

npm install react-360-view-simple

Config

import ThreeSixty from 'react-360-view-simple'

Example

<ThreeSixty
    amount={36}
    imagePath="https://scaleflex.cloudimg.io/width/600/q35/https://scaleflex.ultrafast.io/https://scaleflex.airstore.io/demo/chair-360-36"
    fileName="chair_{index}.jpg?v1"
/>

Adding a Header

<div class="v360-header text-light bg-dark">
    <span class="v360-header-title">36 Images - Autoplay (1 loop) - Reverse Spin</span>
    <span class="v360-header-description"></span>
</div>

Props

NameTypeDescriptionRequiredDefault Value
amountNumberNumber of imagesYes
imagePathStringPath to your imageYes
fileNameStringFile name formatYes
spinReverseBooleanReverse SpinOptionalfalse
boxShadowBooleanApply Box Shadow BackgroundOptionalfalse
paddingIndexBooleanApply Leading Zero to Image IndexOptionalfalse

Credits