【问题标题】:Reveal.js navigation doesn't work within a jquery click eventReveal.js 导航在 jquery 点击事件中不起作用
【发布时间】:2013-10-17 10:07:30
【问题描述】:

我希望任何人都熟悉Reveal.js,这是一个了不起的演示文稿/幻灯片。 它非常简单,但使用我的 jQuery 导航功能,Links 将不起作用。 如果我删除 jQuery 函数,幻灯片部分会被正确调用。

我错过了什么?

navigation: function () {

var $items;
items = $('.items a.see-all');
items.on('click', function (e) {


e.preventDefault(); 

$('.wrap-content').css({
     opacity: 0,
    'z-index': -1
  });
$('.wrap-section').css({
     opacity: 1,
     'z-index': 1
   }); 
});

},

【问题讨论】:

  • 有什么办法可以看看你现在拥有什么吗? jsbin.com
  • @Sunny R Gupta 我正在尝试把它放在一起
  • @Sunny R Gupta 你能看看这个吗?
  • 我猜它正在工作?

标签: jquery reveal.js


【解决方案1】:

检查一下:

navigation: function () {

$('.items a.see-all').on('click', function (e) {


e.preventDefault(); 

$('.wrap-content').css({
     'opacity': 0,
    'z-index': -1
  });
$('.wrap-section').css({
     'opacity': 1,
     'z-index': 1
   }); 
});

},

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-14
    • 1970-01-01
    • 2020-05-14
    • 1970-01-01
    • 1970-01-01
    • 2016-02-12
    相关资源
    最近更新 更多