<p class="parent">
<a class="text-fill" href="#0">Type Fill</a>
</p>
/* --------------------------------
š” How to create a text filling effect in CSS
š https://codyhouse.co/nuggets/text-filling-effect
-------------------------------- */
.text-fill {
text-decoration: none;
text-fill-color: transparent;
text-stroke: thin PaleTurquoise;
}
.text-fill:hover {
text-fill-color: PaleTurquoise;
}
/* demo stuff */
body {
font-family: 'Space Mono', sans-serif;
min-height: 100vh;
padding: 2rem;
display: flex;
justify-content: center;
place-items: center;
background-color: MidnightBlue;
}
.parent {
font-size: 2.5rem;
font-weight: bold;
}
This Pen doesn't use any external JavaScript resources.