Show an Image on Hover
Example: hover here
Upload your images to a Page, then open Code View and paste the following divs:
<div class="hover-title">Image Hover One</div>
<div class="hover-image">{image 1}</div>
<div class="hover-title">Image Hover Two</div>
<div class="hover-image">{image 2}</div>
Then paste the following code in your CSS Editor:
.hover-title {
display: inline;
pointer-events: auto;
cursor: pointer;
}
.hover-image {
visibility: hidden;
}
body:not(.mobile) .hover-title:hover + .hover-image {
visibility: visible;
pointer-events: none;
}
.hover-image {
display: flex;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: -1;
pointer-events: none;
flex-direction: column;
align-items: center;
justify-content: center;
/* Change width and height to scale images */
width: 90vw;
height: 90vh;
}
.hover-image img {
max-width: 100% !important;
max-height: 100% !important;
width: auto !important;
height: auto !important;
margin-bottom: 0;
}