Reputation: 9
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
Upvotes: -2
Views: 160
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