I recently completed the design of a basic website that includes both mobile and desktop versions. However, I am looking to incorporate some animation into the site to enhance its appearance.
One specific feature is a "go up" link at the bottom of the mobile version, allowing users to quickly navigate back to the top of the page. I would like this link to smoothly scroll to the top instead of jumping instantly.
If possible, I prefer to achieve this using CSS and possibly with new attributes such as animation-duration, although I have been unable to do so on my own.
Below is the HTML code for the go-to-top link:
<li class="top"><a href="#home"><span>⇧</span>Top</a></li>
Can you provide guidance on the necessary CSS code to implement this smooth scrolling effect?