<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;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: thin PaleTurquoise;
}

.text-fill:hover {
  -webkit-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;
}

External CSS

  1. https://codepen.io/codyhouse/pen/PoaqJWp.css

External JavaScript

This Pen doesn't use any external JavaScript resources.