Result
再生ボタンで動作を確認できます。
jQuery
function footerStart(selector){
// #itemまでスクロール
$('html,body').animate({scrollTop: $(selector).offset().top},'slow');
//スクロールの着地点を生成
}$("#parent").append("<li id='item'>Last!!</li>");
//セレクタ指定
footerStart("#item");
html
<ul id='parent'> <li>start!!</li> <li><br/>1<br/>2<br/>3<br/>4<br/>・・・<br/>119</li> </ul>
via
Scroll a list item such that it becomes visible? – Stack Overflow
[myphp file=’jquery-other-snippets’]
