我已经做了所有的事情来尝试修复我的代码: 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
});
});发布于 2019-09-01 13:18:37
包含宽松选项的最新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>
https://stackoverflow.com/questions/57742601
复制相似问题