<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Smooth Scroll</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<!-- stylesheets -->
|
|
<style type="text/css">
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
|
font-size: 112.5%;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
max-width: 40em;
|
|
width: 88%;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<main id="top">
|
|
|
|
<nav>
|
|
<h1>Smooth Scroll</h1>
|
|
<p><a href="https://github.com/cferdinandi/smooth-scroll">GitHub</a></p>
|
|
<hr>
|
|
</nav>
|
|
|
|
<section>
|
|
<p>
|
|
<a href="#bazinga">Click Me</a><br>
|
|
<a href="#1@#%^-bottom">Or me</a>
|
|
</p>
|
|
|
|
<p>
|
|
.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>
|
|
.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>
|
|
.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.
|
|
</p>
|
|
|
|
<p id="bazinga"><a href="#1@#%^-bottom">Bazinga!</a></p>
|
|
|
|
<p>
|
|
.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>
|
|
.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>
|
|
.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.
|
|
.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>
|
|
.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>
|
|
.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.<br>.
|
|
</p>
|
|
|
|
<p id="1@#%^-bottom"><a href="#top">Back to the top</a></p>
|
|
|
|
<p>.<br>.<br>.<br>.<br>.</p>
|
|
</section>
|
|
</main>
|
|
|
|
<!-- Javascript -->
|
|
<script src="dist/smooth-scroll.polyfills.js"></script>
|
|
<script>
|
|
var scroll = new SmoothScroll('a[href*="#"]');
|
|
</script>
|
|
|
|
|
|
</body>
|
|
</html>
|