Skip to content

Instantly share code, notes, and snippets.

@001101
Created February 8, 2026 22:07
Show Gist options
  • Select an option

  • Save 001101/fec03c79cafd1dc25a472a0b48d8269d to your computer and use it in GitHub Desktop.

Select an option

Save 001101/fec03c79cafd1dc25a472a0b48d8269d to your computer and use it in GitHub Desktop.
Menu Hover Fill Text CSS
<ul>
<li><a href="#">home</a></li>
<li><a href="#">archives</a></li>
<li><a href="#">tags</a></li>
<li><a href="#">categories</a></li>
<li><a href="#">about</a></li>
</ul>
// https://picular.co/bluemoon
@import url("https://fonts.googleapis.com/css?family=Raleway:400,400i,700");
body {
display: flex;
height: 100vh;
justify-content: center;
align-items: center;
text-align: center;
background: #1A1E23;
}
ul {
display: flex;
flex-direction: column;
align-items: start;
list-style-type: none;
li {
padding: 6px 0;
a {
--fill-color: #198CE6;
position: relative;
display: block;
padding: 4px 0;
font: 700 3rem Raleway, sans-serif;
text-decoration: none;
text-transform: uppercase;
-webkit-text-stroke: 2px var(--fill-color);
background: linear-gradient(var(--fill-color) 0 100%) left / 0 no-repeat;
color: transparent;
background-clip: text;
transition: 0.5s linear;
&:hover {
background-size: 100%;
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment