''을 클릭 한 후 노란색으로 표시된 콘텐츠 영역에 매우 미세한 바운스 효과를 추가하려고합니다. 그것을 추측하고있는 Im는 javascript에서하게 될 것이다?자바 스크립트 바운스 효과 추가하기
HTML
<div class="block">
<h2>This is green block is fixed</h2>
</div>
<div class="content" id="here">
<div class="headerbar"> <a href="#here">Top/Reveal</a>
Sublte Bounce
</div>
</div>
JS
$("a[href='#here']").click(function() {
$("html, body").animate({
scrollTop: $("body").scrollTop() == 0 ? 300 : 0
}, "slow");
return false;
});
그래서 ... 이미하고있는 일 외에 원하는 것이 정확히 무엇입니까? –
[jQuery 바운스 이펙트] (http://api.jqueryui.com/easings/)가 포함 된 경우, 세 번째 매개 변수로''바운스''를''animate''로 전달하면됩니다. – jbabey