<div class="site-container">
  <svg xmlns="http://www.w3.org/2000/svg" class="blinking-text" width="400" height="200" viewBox="0 0 400 200">
    <text class="text-animation-title" text-anchor="middle" x="50%" y="50%">
      Blinking Text
    </text>
  </svg>
</div>
@import "https://fonts.googleapis.com/css2?family=Anton&display=swap";

:root {
  --text-body-bg-color: #1e272e;
  --text-body-color: #ffdd59;
  --text-font-family: "Anton", sans-serif;
  --text-animation-speed: 0.5s;
  --text-size: 5em;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font: 1em/160% sans-serif;
  margin: 0;
  background-color: var(--text-body-bg-color);
  color: var(--text-body-color);
}

svg {
  fill: currentColor;
  max-width: 100%;
  vertical-align: baseline;
}

.site-container {
  padding: 2em;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.blinking-text {
  animation: blink var(--text-animation-speed) ease-in infinite alternate;
}

.blinking-text text {
  font-size: var(--text-size);
  font-family: var(--text-font-family);
}

@keyframes blink {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.