<p class="text-xxxxl font-bold">
  <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;
}

body {
  --font-primary: 'Space Mono', sans-serif;
  min-height: 100vh;
  padding: var(--space-md);
  display: flex;
  justify-content: center;
  place-items: center;
  background-color: MidnightBlue;
}
View Compiled

External CSS

  1. https://unpkg.com/codyhouse-framework/main/assets/css/style.css
  2. https://codepen.io/codyhouse/pen/oNxLjqp

External JavaScript

This Pen doesn't use any external JavaScript resources.