h1 Breathe
View Compiled
@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@699;700&display=swap");
:root {
  --lower: 100;
  --upper: 700;
}
body {
  min-height: 100vh;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
          justify-content: center;
  background: #262626;
}
h1 {
  font-family: 'Roboto Mono', monospace;
  font-size: 7rem;
  text-align: center;
  color: #fff;
  font-variation-settings: 'wght' var(--lower);
  -webkit-transition: 0.25s ease 0s;
  transition: 0.25s ease 0s;
  -webkit-animation: breathe 2.5s infinite ease-in-out;
          animation: breathe 2.5s infinite ease-in-out;
}
@-webkit-keyframes breathe {
  50% {
    font-variation-settings: 'wght' var(--upper);
  }
}
@keyframes breathe {
  50% {
    font-variation-settings: 'wght' var(--upper);
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.