我的Jquery动画无效,没有任何显示

时间:2017-07-10 23:12:11

标签: javascript jquery animation effect

$("#run_anim").click(function(){
  var box = $('.anim_box')
  box.show()
  //going to add more this is just for testing
})

在我的网站上(torin.eschweb.com)我正在尝试制作一个动画,到目前为止我只有在你按下按钮但没有任何东西出现时才能显示div。

1 个答案:

答案 0 :(得分:1)

请将事件监听器添加到jQuery ready method

$(document).ready(function() {
  $("#run_anim").click(function(){
    var box = $('.anim_box')
    box.show()
    //going to add more this is just for testing
  });
});