-1

我正在我的浏览器上使用一个非常简单的脚本来尝试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>

提前致谢。

4

1 回答 1

4

你的班级被称为probatorio_torio_,但你正在寻找probatorio_torio

于 2015-05-05T09:19:38.393 回答