ok

Mini Shell

Direktori : /home2/selectio/www/renew-right/
Upload File :
Current File : //home2/selectio/www/renew-right/demo.php

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Image Before and After Effect</title>
  <link rel="stylesheet" href="styles.css">
</head>
<body>
    <style>
        .image-container {
  position: relative;
  width: 500px; /* Adjust the width as per your image size */
  height: auto; /* Adjust the height as per your image size */
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transition: opacity 0.5s ease-in-out;
}

.after-image {
  opacity: 0;
}

.image-container:hover .before-image {
  opacity: 0;
}

.image-container:hover .after-image {
  opacity: 1;
}

    </style>
  <div class="image-container">
    <img src="https://spinnpress.in/wp-content/uploads/2022/08/Before-shoe1.jpg.webp" alt="Before" class="before-image" id="beforeImage">
    <img src="https://spinnpress.in/wp-content/uploads/2022/08/After-shoe1.jpg.webp" alt="After" class="after-image" id="afterImage">
  </div>

  <script src="script.js"></script>
</body>
</html>

Zerion Mini Shell 1.0