main {
  scroll-timeline-name: --main;
}

.scroll-to-topper {
  @apply text-primary/60;
  position: fixed;
  bottom: 2rem;
  right: 3rem;

  @supports (animation-timeline: scroll()) {
    animation: fadeOut linear both;
    animation-timeline: --main;
    animation-range: 0 20rem;
  }
}

@keyframes fadeOut {
  from {
    opacity: 0;
    visibility: hidden;
  }
  to {
    opacity: 1;
    visibility: visible;
  }
}
