Slides have some parameters that are introduced in the following table. Slide parameters values are set to the slide element by data attribute. At the end of this article, you can find an example of adding parameters to the slide.
Parameters list
Name | Default value | Description |
data-delay | null | This parameter specifies how much slideshow waits in seconds on this slide when the autoplay is enabled. This parameter overrides?slideshowDelay?value for the slide. |
data-id | null | It defines a unique name for the slide, this can be used for showing and hiding overlay layers. |
data-height-target | ‘background’ | This parameter is useful when?autoHeight?options is enabled. It specifies the target area in slide for measuring height value.?'background' ?value returns the slide background image height and?'content' ?value calculates the height of all contents over the slide including layers. |
Example of adding parameters to slide element
<div id="masterslider" class="master-slider"> <div class="ms-slide" data-delay="10" data-id="main-slide" data-height-target="content" > <!-- slide content here --> </div> <!-- .... --> </div>