[英]impress.js - how to add next and previous buttons
i found this: 我找到了这个:
impress().next();
impress().prev();
impress().goto(10);
but i dont know how to use it? 但我不知道如何使用它? is there any way to implement two simple buttons which go one slide further or back?
有没有办法实现两个简单的按钮,可以进一步向后或向后滑动?
Alright I figured it out: 好吧我明白了:
<button id="prev"></button>
<button id="next"></button>
$("#next").click(function () {
api.next();
});
$("#prev").click(function () {
api.prev();
});
That's it, easier than i thought it is. 就是这样,比我想象的要容易。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.