.box {
  width: max-content;
  padding: 0.75rem 1rem;
  background: white;
  color: black;
  border: 1px solid silver;
  animation: fade 1s linear alternate infinite;
  animation-delay-start: 0s;
  animation-delay-end: 0.5s;
}

@keyframes fade {
  to {
    opacity: 0.35;
  }
}