A View360 Component will be used to rotate the image 360 Degree. We have to pass multiple image from different angle to support 360 view of image.
A minimal Demo Link
Value | Used as a | Description |
---|---|---|
View360 | ✅ Component | Can be used as Component |
view360 | ❌ Service | Can be used as Service |
// Default import will return View360 Component
import View360 from 'fe-pilot/View360';
<View360
height="600px"
width="100%"
imageList={[
"http://woosterwebdesign.com/experiments/images/car_slides/car_(1).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(2).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(3).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(4).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(5).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(6).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(7).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(8).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(9).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(10).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(11).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(12).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(13).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(14).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(15).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(16).jpg",
]}
/> // Used as a Component
import { View360 } from 'fe-pilot/View360';
<View360
height="600px"
width="100%"
imageList={[
"http://woosterwebdesign.com/experiments/images/car_slides/car_(1).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(2).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(3).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(4).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(5).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(6).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(7).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(8).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(9).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(10).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(11).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(12).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(13).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(14).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(15).jpg",
"http://woosterwebdesign.com/experiments/images/car_slides/car_(16).jpg",
]}
/> // Used as a Component
Props | Type | Description | Default Value |
---|---|---|---|
height | String | Height of the Image | Default value is 300px |
width | String | Width of the Image | Default value is 100% |
imageList | Array | Provide the images from different angle to rotate | Default value is [] |