嗨,大家好,我有下面的代碼,我想改變那個褪色緩慢的jquery緩動:https://api.jqueryui.com/easings/ 但我不知道該怎麼做,你能幫我嗎?我開始使用JavaScript和jQuery。 在此先感謝,歡呼! `如何將淡入淡出變爲淡化?
$("#upClick").click(function(){
$('html, body').animate({
scrollTop: $('#scroll').offset().top
}, 'slow');
});
代碼:
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="arrowdown">
<button class="arrow">hi im a dropdow button</button>
</div>
<script type="text/javascript">
$("button").click(function() {
$('html, body').animate({
scrollTop: $('text').offset().top
}, 1500, 'easeOutExpo');
// ----------^---- set here
});
</script>
<div>
<p>"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of
human
</p>
</div>
<div>
<p>"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of
human
</p>
</div>
<div>
<p>"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of
human
</p>
</div>
<div class="text">
<p>"But I must explain to you how all this mistaken idea of denouncing pleasure and praising pain was born and I will give you a complete account of the system, and expound the actual teachings of the great explorer of the truth, the master-builder of
human
</p>
</div>
問題,要求我們建議,查找或推薦一本書,工具,軟件庫,插件,** **教程,解釋技術或提供任何其他非現場資源是脫離主題堆棧溢出堆棧溢出 –
嗨,我附上下面的代碼在一個新的答案,請檢查它 –