上記のdivの高さを同時にアニメーション化しながら、divへのスクロールをアニメーション化しようとしています。スクロールとアニメーションはどちらも独立して機能しますが、同時には機能しません。私は彼らが何らかの形で矛盾していると思います。何か案は?
setTimeout(function() {
$("html,body").animate({scrollTop: $(".hublot").offset().top}, 500);
$(".hublot").animate({height:$(window).height()}, 500, 'easeInOutQuart');
}, 500);