From 38fd80e7a02a158dce1ba1edb4d6144e2325585a Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sun, 25 Nov 2018 16:48:28 +0800 Subject: Change Carousels image number to variable #428 --- docs/experimentals/viewer-360.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/experimentals/viewer-360.html') diff --git a/docs/experimentals/viewer-360.html b/docs/experimentals/viewer-360.html index 83882f1..394db70 100644 --- a/docs/experimentals/viewer-360.html +++ b/docs/experimentals/viewer-360.html @@ -223,7 +223,8 @@

Photo credits: Microsoft Surface Pro 6

-

You will need to use your own product image sprite (all angle of photos in one image) and define variables to use this component. The default image number is 36.

+

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

+

The default image number in CSS is 36. You can change the image number by changing the variable $image-number in _viewer-360.scss and re-compiling the CSS.

<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>
-- 
cgit v1.3.1-26-gb76a