Skip to content

A Simple and Beautiful 360° Product Viewer built on React.js

License

Notifications You must be signed in to change notification settings

amhep/react-360

 
 

Repository files navigation

react-360-view-simple

Features

  • Mouse drag 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

Name Type Description Required Default Value
amount Number Number of images Yes
imagePath String Path to your image Yes
fileName String File name format Yes
spinReverse Boolean Reverse Spin Optional false
boxShadow Boolean Apply Box Shadow Background Optional false
paddingIndex Boolean Apply Leading Zero to Image Index Optional false

Credits

About

A Simple and Beautiful 360° Product Viewer built on React.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 61.4%
  • CSS 33.0%
  • HTML 5.6%