开发者

How to make deck.js presentations go forward when clicking

开发者 https://www.devze.com 2023-04-11 09:37 出处:网络
How do I configure deck.js so it goes to the next slide when I click 开发者_开发技巧anywhere on the page? Very much like Powerpoint or Impress does it.The quickest way without using the navigation mod

How do I configure deck.js so it goes to the next slide when I click 开发者_开发技巧anywhere on the page? Very much like Powerpoint or Impress does it.


The quickest way without using the navigation module:

$(function() {
   $.deck('getContainer').click(function() {
      $.deck('next');
   });
});


What I used in the end and was the solution which required the least thinking effort:

Including the deck.navigation extension and applying the deck-next-link class to my deck-container (<body>)

0

精彩评论

暂无评论...
验证码 换一张
取 消