Just by reading the title, you can understand my concern. Currently, when I click on "Example 4", the page abruptly scrolls to the h1 of Example 4. It looks so ungraceful, like a sudden boom. I would prefer a smooth scrolling effect. Is it possible to achieve this using just HTML/CSS, or do I need to use jQuery/JS? Below is a quick example of what I have in place right now.
<html>
<body>
<ul>
<li><a href="http://www.----.com/#ex1">Example 1</a></li>
<li><a href="http://www.----.com/#ex2">Example 2</a></li>
<li><a href="http://www.----.com/#ex3">Example 3</a></li>
<li><a href="http://www.----.com/#ex4">Example 4</a></li>
<li><a href="http://www.----.com/#ex5">Example 5</a></li>
</ul;
<h1 id="ex1">Example 1</h1>
<p>"Lorem ipsum dolor sit amet, consectetur adipisicing 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>
<br />
<h1 id="ex2">Example 2</h1>
<p>"Lorem ipsum dolor sit amet, consectetur adipisicing 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 cupidata...</p>
<br />
<h1 id="ex3">Example 3</h1>
<p>"Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua....
<br />
<h1 id="ex4">Example 4</h1>
<p>"Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ...
<br />
<h1 id="ex5">Example 5</h1>
<p>"Lorem ipsum dolor sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua....
<br />
</body>
EDIT: Check out my website here for more!.