返回顶部
长页面滚下去一段才冒出来的小圆钮,点一下平滑滚回顶,别一进页面就杵在那。
实现提示词
Back-to-top button: a small round button appearing only after scrolling 600px, smooth-scrolls to top on click. Hidden on initial page load.Back-to-top button that fades and slides in after 600px of scrolling, then smooth-scrolls to top on click.设计规范条目
### Back to Top (#backtop) Category: Navigation Back to top: a small round button appears after scrolling down—click to smooth-scroll back up; don't show it on page load. - Do: Back-to-top button: a small round button appearing only after scrolling 600px, smooth-scrolls to top on click - Do: Hidden on initial page load - Avoid: don't show it on page load With motion: Back-to-top button that fades and slides in after 600px of scrolling, then smooth-scrolls to top on click. Live demo: https://uidesignmd.com/guides/backtop/