From 231e407a0123fc32263921dc5e55b18b5b7f2a43 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 26 Nov 2018 23:09:44 +0800 Subject: Improve 360-Degree Viewer again --- docs/experimentals/viewer-360.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/experimentals') diff --git a/docs/experimentals/viewer-360.html b/docs/experimentals/viewer-360.html index fc42330..9757132 100644 --- a/docs/experimentals/viewer-360.html +++ b/docs/experimentals/viewer-360.html @@ -225,19 +225,19 @@
- -
+ +
-

Photo credits: Microsoft Xbox One X

+

Photo credits: Microsoft Xbox One X

You will need to use your own product image sprite (all angle of photos in one image) and set the attribute max to the image numbers to use this component.

<div class="viewer-360">
   <input class="viewer-slider slider" type="range" min="1" max="36" value="1" oninput="this.setAttribute('value', this.value);">
   <figure class="viewer-image" style="background-image:url('...');"></figure>
 </div>
 
-

The default image numbers in CSS are 36 and 30. You can copy the mixin and add more numbers in _viewer-360.scss and re-compiling the CSS.

+

The default image numbers in CSS are 36. You can copy the mixin and add more numbers in _viewer-360.scss and re-compiling the CSS.

@include viewer-slider-size(36);
 @include viewer-slider-size(30);
 
-- cgit v1.3.1-26-gb76a