You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stories/Components/UIcomponents/Carousel/FixedSizeCarousel/FixedSizeCarousel.stories.js
+27-2
Original file line number
Diff line number
Diff line change
@@ -69,13 +69,38 @@ export default {
69
69
<ul>
70
70
<li>Copy HTML from the HTML tab of the canvas.</li>
71
71
<li>Include Swiper library from <ahref="https://swiperjs.com/get-started">here</a> in your HTML page.</li>
72
-
<li>If you use fixed image size carousel, include <code>fluid-image-size-carousel.min.css</code> and initialize carousel by calling <code>swiper('.fixed-carousel', '.fixed-carousel__button-wrap');</code> functions.</li>
72
+
<li>Include the CSS files listed below.</li>
73
+
<li>Choose one of the following initialization methods:</li>
74
+
{/* <li>If you use fixed image size carousel, include <code>fluid-image-size-carousel.min.css</code> and initialize carousel by calling <code>swiper('.fixed-carousel', '.fixed-carousel__button-wrap');</code> functions.</li>
73
75
<li>If you use Fluid image size carousel, include <code>fixed-size-carousel.min.css</code> and initialize carousel by calling <code>swiper('.fluid-carousel', '.slide-content');</code> functions.</li>
74
76
<li>If you use Image only carousel, include <code>image-only-carousel.min.css</code> and initialize the carousel by calling <code>swiper('.image-carousel', '.slider-slide');</code> functions.</li>
75
77
<li>If you want to add left-right animation, add <code>data-viewport="true"</code> attribute to the HTML element you want to animate and include <code>viewport.min.js</code> file.</li>
76
-
<li>Refer to <ahref="https://github.com/undp/design-system/wiki/Swiper-documentation">this document</a> for Swiper integration &options.</li>
78
+
<li>Refer to <a href="https://github.com/undp/design-system/wiki/Swiper-documentation">this document</a> for Swiper integration & options.</li> */}
<li>The carousel will initialize automatically when the page loads - no JavaScript calls required!</li>
77
90
</ul>
78
91
92
+
<p>Additional options:</p>
93
+
<ul>
94
+
<li>If you want to add left-right animation, add <code>data-viewport="true"</code> attribute to the HTML element you want to animate and include <code>viewport.min.js</code> file.</li>
95
+
<li>Refer to <ahref="https://github.com/undp/design-system/wiki/Swiper-documentation">this document</a> for Swiper integration &options.</li>
Copy file name to clipboardExpand all lines: stories/Components/UIcomponents/Carousel/FluidImageSizeCarousel/FluidImageSizeCarousel.stories.js
+28-2
Original file line number
Diff line number
Diff line change
@@ -256,13 +256,39 @@ export default {
256
256
<ul>
257
257
<li>Copy HTML from the HTML tab of canvas.</li>
258
258
<li>Include Swiper library from <ahref="https://swiperjs.com/get-started">here</a> in your HTML page.</li>
259
-
<li>If you use fixed image size carousel, include <code>fluid-image-size-carousel.min.css</code> and initialize carousel by calling <code>swiper('.fixed-carousel', '.fixed-carousel__button-wrap');</code> functions.</li>
259
+
<li>Include the CSS files listed below.</li>
260
+
<li>Choose one of the following initialization methods:</li>
261
+
{/* <li>If you use fixed image size carousel, include <code>fluid-image-size-carousel.min.css</code> and initialize carousel by calling <code>swiper('.fixed-carousel', '.fixed-carousel__button-wrap');</code> functions.</li>
260
262
<li>If you use Fluid image size carousel, include <code>fixed-size-carousel.min.css</code> and initialize carousel by calling <code>swiper('.fluid-carousel', '.slide-content');</code> functions.</li>
261
263
<li>If you use Image only carousel, include <code>image-only-carousel.min.css</code> and initialize the carousel by calling <code>swiper('.image-carousel', '.slider-slide');</code> functions.</li>
262
264
<li>If you want to add left-right animation, add <code>data-viewport="true"</code> attribute to the HTML element you want to animate and include <code>viewport.min.js</code> file.</li>
263
-
<li>Refer to <ahref="https://github.com/undp/design-system/wiki/Swiper-documentation">this document</a> for Swiper integration &options.</li>
265
+
<li>Refer to <a href="https://github.com/undp/design-system/wiki/Swiper-documentation">this document</a> for Swiper integration & options.</li> */}
<li>If you want to add left-right animation, add <code>data-viewport="true"</code> attribute to the HTML element you want to animate and include <code>viewport.min.js</code> file.</li>
290
+
<li>Refer to <ahref="https://github.com/undp/design-system/wiki/Swiper-documentation">this document</a> for Swiper integration &options.</li>
Copy file name to clipboardExpand all lines: stories/Components/UIcomponents/Carousel/ImageOnlyCarousel/ImageOnlyCarousel.stories.js
+25-2
Original file line number
Diff line number
Diff line change
@@ -95,12 +95,35 @@ export default {
95
95
<h3>Usage</h3>
96
96
<p>Copy HTML from the HTML tab of canvas.</p>
97
97
<p>Include Swiper library from here <ahref="https://swiperjs.com/get-started">https://swiperjs.com/get-started</a> in your html page.</p>
98
-
<p>If you use fixed image size carousel then include fluid-image-size-carousel.min.css and initialize carousel by calling swiper('.fixed-carousel', '.fixed-carousel__button-wrap'); functions</p>
98
+
{/* <p>If you use fixed image size carousel then include fluid-image-size-carousel.min.css and initialize carousel by calling swiper('.fixed-carousel', '.fixed-carousel__button-wrap'); functions</p>
99
99
<p>If you use Fluid image size carousel then include fixed-size-carousel.min.css and initialize carousel by calling swiper('.fluid-carousel', '.slide-content'); functions</p>
100
100
<p>If you use Image only carousel then include image-only-carousel.min.css and initialize the carousel by calling swiper('.image-carousel', '.slider-slide'); functions.</p>
101
101
<p>If you want to add left-right animation then add data-viewport=”true” attribute to the HTML element you want to animate and include viewport.min.js file.</p>
102
-
<p>Refer <ahref="https://github.com/undp/design-system/wiki/Swiper-documentation">this document</a> for Swiper integration &options</p>
102
+
<p>Refer <a href="https://github.com/undp/design-system/wiki/Swiper-documentation">this document</a> for Swiper integration & options</p> */}
<li>If you want to add left-right animation, add <code>data-viewport="true"</code> attribute to the HTML element you want to animate and include <code>viewport.min.js</code> file.</li>
125
+
<li>Refer to <ahref="https://github.com/undp/design-system/wiki/Swiper-documentation">this document</a> for Swiper integration &options.</li>
Copy file name to clipboardExpand all lines: stories/Components/UIcomponents/Gallery/ParallaxGallery/ParallaxGallery.stories.js
+22-1
Original file line number
Diff line number
Diff line change
@@ -165,9 +165,30 @@ export default {
165
165
166
166
<ul>
167
167
<li>Copy the HTML from the HTML Tab of canvas and include CSS and JS in the ‘CSS and JS References’ section.</li>
168
-
<li>Initialize the parallaxEffect by calling <code>parallaxEffect('.parallax-gallery-images', '.column', 'top center', 'bottom+=15% center', 'vertical', 'all');</code> function in your JS file.</li>
168
+
{/* <li>Initialize the parallaxEffect by calling <code>parallaxEffect('.parallax-gallery-images', '.column', 'top center', 'bottom+=15% center', 'vertical', 'all');</code> function in your JS file.</li> */}
169
169
<li>Refer to <ahref="https://github.com/undp/design-system/wiki/Parallax-documentation">this document</a> for Parallax integration &options.</li>
Copy file name to clipboardExpand all lines: stories/Components/UIcomponents/Hero/HomePageHero/HomePageHero.stories.js
+38-2
Original file line number
Diff line number
Diff line change
@@ -60,9 +60,28 @@ export default {
60
60
<li>Choose the variant either video or Image from the control tab on canvas.</li>
61
61
<li>Grab the HTML from the HTML tab and also include css and js files listed below.</li>
62
62
<li>If you want to add left-right animation then add <code>data-viewport="true"</code> attribute to your HTML element and include <code>viewport.min.js</code> file.</li>
63
-
<li>If you want the image to expand size on scroll then include <code>animation.min.js</code> and initialize <code>expandToSize('.homepage-hero-full')</code>.</li>
63
+
{/* <li>If you want the image to expand size on scroll then include <code>animation.min.js</code> and initialize <code>expandToSize('.homepage-hero-full')</code>.</li> */}
<li>Include <code>animation.min.js</code> in your HTML.</li>
79
+
<li>Call the initialization function directly in your JavaScript:
80
+
<code>expandToSize('.homepage-hero-full');</code>
81
+
</li>
64
82
</ul>
65
83
84
+
66
85
<h3>CSS and JS References</h3>
67
86
68
87
<h4>CSS:</h4>
@@ -126,7 +145,24 @@ export default {
126
145
<li>Grab the HTML from the HTML tab and also include css and js files listed below.</li>
127
146
<li>If you want to add left-right animation then add <code>data-viewport="true"</code> attribute to your HTML element and include <code>viewport.min.js</code> file.</li>
0 commit comments