.v-refresher {
  overflow: hidden;
  position: relative;
  background-color: transparent;

  &__image {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform: translateX(-50%);
  }

  &.is-default {
    background-color: $--color-bg-gray;

    .v-refresher__image {
      width: 60px;
      background-size: 240px;
      background-position-x: 0;
    }
  }

  &.is-closing {
    transition: 200ms height ease-in;
  }

  &.is-loading {
    &.is-default {
      .v-refresher__image {
        animation: refresher-animation 300ms steps(1) infinite alternate;
      }

      @keyframes refresher-animation {
        0% {
          background-position-x: 0;
        }

        33% {
          background-position-x: -60px;
        }

        66% {
          background-position-x: -120px;
        }

        100% {
          background-position-x: -180px;
        }
      }
    }
  }
}
