Tilt Down

Image tilts downward on hover/focus (bottom recedes), with a small zoom to keep the viewport covered.

Tilt Down demo

Hover or focus the image to see the effect.

HTML

description

CSS

.hover-effect.tilt-down img{
  transition: transform 0.5s ease;
}
.hover-effect.tilt-down:hover img,
.hover-effect.tilt-down:focus-visible img{
  transform: perspective(800px) rotateX(-15deg) scale(1.4);
}
@media (prefers-reduced-motion: reduce) {
  .hover-effect.tilt-down img{
    transition: none;
  }
  .hover-effect.tilt-down:hover img,
  .hover-effect.tilt-down:focus-visible img{
    transform: perspective(800px) rotateX(-15deg) scale(1.4);
  }
}

The animates transform: perspective(800px) rotateX(-15deg) scale(1.4), making the bottom of the image recede. The slight scale prevents blank corners. Select the code and copy with Ctrl+C or ⌘C.