$(document).ready(function () {
$('html, body').animate({
scrollTop: $('#div').offset().top
}, 400); //또는 'fast', 'slow'
});
setTimeout(function(){
var offset = $("#divfrm").offset();
$('html, body').animate({scrollTop : (offset.top-20)}, 350);
}, 400);
'[ Web 관련 ] > jQuery' 카테고리의 다른 글
부트 스트랩 tooltip (툴팁) + html 사용 지원 (0) | 2019.07.22 |
---|---|
객체의 id, name, class가져오기 (0) | 2019.07.16 |
제이쿼리 - 클래스를 변경하거나 삭제 + data속성 삭제 (0) | 2019.06.25 |
로딩 이미지 적용 (아주 간단히) (0) | 2019.06.12 |
chart.js 관련 (0) | 2019.05.29 |