https://www.affiliateofficial.co.uk/?_ab=0&_fd=0&_sc=1
above is the link how to make image size bigger and how to add a zoom effect like where i point the mouse that area zooms can some one please send me code
below is the code which i am using
Image Change on Button Click
body {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
margin: 10px;
}
.box-container {
display: flex;
justify-content: center;
}
.box {
width: 90%; /* Adjust width to be responsive */
max-width: 500px; /* Maximum width */
height: auto; /* Height auto for aspect ratio maintenance */
margin: 10px;
position: relative; /* Add position relative for button positioning */
}
.image {
width: 120%; /* Increase width */
height: auto;
object-fit: cover;
display: none; /* Hide all images by default */
transition: transform 0.3s; /* Add transition for smooth zoom effect */
}
.image.active {
display: block; /* Show the active image */
}
.btn-container {
text-align: center;
margin-bottom: 20px;
display: flex; /* Use flexbox */
justify-content: space-between; /* Space between the buttons */
width: 90%; /* Adjust width */
}
/* Style for individual box buttons */
.box-btn {
margin: 5px;
background-color: black;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
}
/* Media query for desktop responsiveness /
@media only screen and (min-width: 601px) {
.btn-container {
justify-content: center; / Center the buttons on desktop /
}
.box-btn:nth-child(1) {
margin-right: 140px; / Add right margin to the first button on desktop /
}
.box-btn:nth-child(2) {
margin-left: 190px; / Add left margin to the second button on desktop */
}
}
/* Media query for mobile responsiveness /
@media only screen and (max-width: 600px) {
.btn-container {
flex-direction: column; / Change to column layout /
align-items: center; / Center the buttons /
}
.box-btn {
margin: 5px 0; / Adjust vertical margin */
}
}
Reverse Image
Reverse Image
@learningdesign Hey, thanks for posting here.
you can use the master filter on the image in liquid code.