Jquery .easing errors jQuery.easing[this.easing]



我已经做了一切来尝试修复我的代码:JQuery 库(Ui、核心、插件(.etc,但无法解决这个问题

$('.heading').click(function() {
console.log("Clicked", $(this));
$(this).animate({'color':'blue'},500,'easeOutBounce'); // example 1 , there not work and attempt error
// $(this).animate({'color':'blue'},500,'leaner');  // example 2 , there not work BUT NOT attempt error
});
});

有查看控制台错误的链接

包括最新的 jQueryUI 作为缓动选项。

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js'></script>

$(document).ready(function() {
$('.heading').click(function() {
$(this).animate({'color':'blue'},1000,'easeOutBounce'); 
$(this).css({ transition: "transform 0.5s",
transform:"translate(100px,100px)"});
});
});
.heading{
color: green;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src='http://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js'></script>
<h1 class="heading">Epanalepis de Fato Hominis</h1>

相关内容

最新更新