我正在我的浏览器上使用一个非常简单的脚本来尝试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;"> </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>
提前致谢。