@include prefix(skeleton) {
  position: relative;
  background: #f6f6f6 linear-gradient(to right, white 0, #e8e8e8 50%, white 100%);
  background-size: 200% 100%;
  background-position-x: 100%;
  animation: loading 1500ms linear infinite;

  &.skeleton-square {
    aspect-ratio: 1;
  }
  &.skeleton-full {
    height: 100%;
    width: 100%;
  }
}

@keyframes loading {
  0% {
    background-position-x: 100%;
  }
  50% {
    background-position-x: 0;
  }
  100% {
    background-position-x: -100%;
  }
}
