Open YoshiRulz opened 1 year ago
For example, GitHub's implementation looks like:
<header> <a id="anchor-name"><svg class="anchor-nav-icon">...</svg></a> Header Text </header>
.anchor-nav-icon { visibility: hidden; } header:hover .anchor-nav-icon { visibility: visible; }
That is, the anchor actually scrolls to the icon.
For example, GitHub's implementation looks like:
That is, the anchor actually scrolls to the icon.