/* Demo hover "shine": a diagonal light band sweeps across the image (600ms linear) */
.image-anime {
  position: relative;
  overflow: hidden;

  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 200%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) rotate(-45deg);
    pointer-events: none;
  }
}

@media (hover: hover) {
  .image-anime:hover::after {
    height: 250%;
    background-color: transparent;
    transition: all 600ms linear;
  }
}

/* Scroll reveal container (GSAP slides the frame in from the left, image in from the right) */
.js-enabled .reveal-img {
  visibility: hidden;
}

.reveal-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: left;
}
