1 parent 6ded610 commit 022bc6cCopy full SHA for 022bc6c
1 file changed
index.html
@@ -485,7 +485,8 @@ <h2 data-i18n="ctaTitle">告别手动安装,从现在开始</h2>
485
div.className = 'term-line';
486
div.innerHTML = line.html;
487
body.insertBefore(div, cursor);
488
- requestAnimationFrame(() => div.classList.add('visible'));
+ requestAnimationFrame(() => { div.classList.add('visible'); });
489
+ setTimeout(() => { body.scrollTop = body.scrollHeight; }, 50);
490
lineIdx++;
491
if (line.delay > 0) setTimeout(showLine, line.delay);
492
else showLine();
0 commit comments