Is it possible with Jssor to place a pause button on the slider and play?

is it possible with Jssor to place a pause button on the slider and play?

Attached image of how I want my slider to be

enter image description here

enter image description here

Upvotes: -2

Views: 160

Answers (1)

jssor
jssor

Reputation: 6985

Yes, you can add toggle play button as static element.

<div id="jssor_1" ...>
    <div data-u="slides">
        <div><!-- slide 1 --></div>
        <div><!-- slide 2 --></div>
    </div>
    <div id="togglePlayButton">
        <!-- static content here -->
    </div>
</div>

On the button click call

jssor_slider_instantce.$Play();

or

jssor_slider_instantce.$Pause();

https://www.jssor.com/development/slider-with-fixed-static-element.html

Upvotes: 0

Related Questions