【问题标题】:I can't make velocity.js function in its simplest case. What am I missing?在最简单的情况下,我无法让velocity.js 发挥作用。我错过了什么?
【发布时间】:2015-05-05 17:19:38
【问题描述】:

我正在我的浏览器上使用一个非常简单的脚本来尝试velocity.js,但我无法让它工作。也许有人可以帮助我?

    <html>
<head>
<script src="http://code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="https://raw.githubusercontent.com/julianshapiro/velocity/master/velocity.min.js"></script>

</head>

<body>
<div class="probatorio_torio_" style="width:50px; background-color: blue; height: 50px;">&nbsp;</div>
<script type="text/javascript">
$(document).ready(function () {
    alert("Se hizo, la secuencia");
    var $div = $(".probatorio_torio");
    alert($div);
    $div.velocity({opacity: 0}, 1000)
    $div.velocity({width: "500px", opacity: 1}, {duration: 400, easing: "swing"}, function(){alert("completado")});
});
</script>


</body>

</html>

提前致谢。

【问题讨论】:

    标签: javascript jquery velocity.js


    【解决方案1】:

    您的课程名为probatorio_torio_,但您正在寻找probatorio_torio。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多