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/carousels.html | 1 + docs/experimentals/viewer-360.html | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'docs/experimentals') diff --git a/docs/experimentals/carousels.html b/docs/experimentals/carousels.html index be88354..f584d52 100644 --- a/docs/experimentals/carousels.html +++ b/docs/experimentals/carousels.html @@ -247,6 +247,7 @@ +

The default image number of Carousels is 8. You can add more images by changing the variable $carousel-number in _carousels.scss and re-compiling the CSS.

<div class="carousel">
   <!-- carousel locator -->
   <input class="carousel-locator" id="slide-1" type="radio" name="carousel-radio" hidden="" checked="">
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