TASVideos / tasvideos

The code for the live TASVideos website
https://tasvideos.org/
GNU General Public License v3.0
62 stars 29 forks source link

[F.Rq.] Anchor nav buttons on headers #1677

Open YoshiRulz opened 1 year ago

YoshiRulz commented 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.