Я только начал использовать Velocity.js, и я пытаюсь сделать простую анимацию, где я меняю цвет круга от красного до желтого. HTML у меня есть только ...Анимация изменения цвета в Velocity.js
<!DOCTYPE html>
<html>
<head>
<link href="https://code.jquery.com/ui/1.9.2/themes/smoothness/jquery-ui.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="https://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="//cdn.jsdelivr.net/velocity/1.2.2/velocity.min.js"></script>
<script src="//cdn.jsdelivr.net/velocity/1.2.2/velocity.ui.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<svg height=300 width=300>
<circle id="example" cx=50 cy=50 r=20 fill="red"></circle>
</svg>
</body>
</html>
... и я пытаюсь изменить цвет круга на желтый в моем JavaScript, как это:
$('#example')
.delay(1000)
.velocity({fill: "yellow"});
Что я делаю неправильно ?
Это работает! Спасибо! :) – sleepycow