color + background-clip === awesome
Created
February 8, 2026 22:07
-
-
Save 001101/fec03c79cafd1dc25a472a0b48d8269d to your computer and use it in GitHub Desktop.
Menu Hover Fill Text CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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