You've probably seen plenty of these commercially oriented web pages where you can scroll down multiple times:
MadCap Software
DreamHost. Web hosting
GitHub
Buttercup. Password management
No video is available for this unit. If it's needed, contact admin@mcmassociates.io
Natively, web pages can be made infinitely scrollable.
<html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="https://mcmassociates.io/standard.css" /> <style> body {height: 15000px; background: linear-gradient(#00ff04, #09aad3);} p {margin-bottom: 12pt;} </style> <script> </script> <title>Simple Long-Scroll Webpage</title> </head> <body> </body> </html>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute
irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat
nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui
officia deserunt mollit anim id est laborum.</p>
<button onclick="topFunction()" id="theButton" title="Back to top">Top</button>
#theButton { display: none; position: fixed; bottom: 20px; right: 30px; z-index: 99; font-size: 18px; border: none; outline: none; background-color: red; color: white; cursor: pointer; padding: 15px; border-radius: 4px; } #theButton:hover { background-color: #555; }
<script> //Get the button var mybutton = document.getElementById("theButton"); // When the user scrolls down 20px from the top of the document, show the button window.onscroll = function() {scrollFunction()}; function scrollFunction() { if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { mybutton.style.display = "block"; } else { mybutton.style.display = "none"; } } // When the user clicks on the button, scroll to the top of the document function topFunction() { document.body.scrollTop = 0; document.documentElement.scrollTop = 0; } </script>
Return to your bookmarked course main page.
How To Create a Scroll To Top Button. W3schools
Take It to the Limit – An Overview of Long Scroll Websites. Cameron Chapman, toptal.com
Long-Scrolling Websites: Tips and Best Practices. Rebecca Vogels, usersnap.com
How to build a long-scrolling Landing Page using Squarespace 7.1 (with smooth scroll). Rob Hope, 2020. Unfortunately, this video is based on Squarespace but it provides a nice design overview.
Just Keep Scrolling! How To Design Lengthy, Lengthy Pages . Nick Babich, smashingmagazine.com, May 25, 2017
Create Fullscreen One Page Scrolling Websites With fullPage.js. jqueryscript.net
https://www.freecodecamp.org/news/back-to-top-button-and-page-progressbar-with-html-css-and-js/. Anish De, feecodecamp.org
Free one-page templates and themes. Collection of One Page templates and themes built by Cruip
Information and programs provided by admin@mcmassociates.io.