Is there any way to set the image display in the image list? Their size cannot be adjusted. Is it possible to animate it somehow when moving the mouse over the image? I am currently trying to do it on this page https://www.turceksro.sk/xtuweb2/index.php/sluzby/sluzby-bozp
It could be done in a similar way to https://www.turceksro.sk/skolenia
Alternatively, could you advise me on a supplement?
thank you
setting images in the list of articles
Accepted answer
Marked as the solutionHello mti,
Apolozy for the inconvenience. Unfortunately, there are no built-in settings to adjust image sizes or add hover animations directly in the image list. However, using custom CSS can help achieve your requirements. I'm giving you some CSS that you can check. Please apply this CSS to your template and adjust the values to fit your needs. Let me know if further clarification is needed!
For image size For image size adjustment:
.sppb-img-responsive {
height: 130px; /* Set the height of the image */
width: 240px; /* Set the width of the image */
}
For hover animation:
*Smooth zoom effect
.image-list img {
width: 100%; /* Adjust as needed */
height: auto;
transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}
.image-list img:hover {
transform: scale(1.1);
filter: brightness(1.2);
}
*Rotate Effect
.sppb-article-img-wrap img {
transition: transform 0.3s ease-in-out;
}
.sppb-article-img-wrap:hover img {
transform: rotate(5deg) scale(1.05); /* Slight rotation and zoom */
}
*Grayscale to Color
.sppb-article-img-wrap img {
transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
filter: grayscale(100%);
}
.sppb-article-img-wrap:hover img {
transform: scale(1.1);
filter: grayscale(0); /* Restores color */
}
*Slide-Up
.sppb-article-img-wrap img {
transition: transform 0.3s ease-in-out;
}
.sppb-article-img-wrap:hover img {
transform: translateY(-10px); /* Moves the image upwards */
}
*Border Expansion
.sppb-article-img-wrap {
position: relative;
display: inline-block;
overflow: hidden;
transition: border 0.3s ease-in-out;
border: 2px solid transparent;
}
.sppb-article-img-wrap:hover {
border: 2px solid #3498db; /* Adds a colored border on hover */
}
.sppb-article-img-wrap img {
transition: transform 0.3s ease-in-out;
}
.sppb-article-img-wrap:hover img {
transform: scale(1.05); /* Slight zoom effect */
}
*Zoom with Shadow
.sppb-article-img-wrap img {
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.sppb-article-img-wrap:hover img {
transform: scale(1.1);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2); /* Enhances the shadow */
} 9 more replies
Can you please write me a more detailed post so I can add it to the template?
Thank you
Follow this documentation to use custom css https://www.joomshaper.com/documentation/helix-framework/custom-code-css-js-meta#documentation-heading-3
Thank you, it worked
You're most welcome! I'm glad to hear it worked perfectly. If there's anything else you need assistance with, feel free to let me know.
I would still need to align the image and text to the center of the column.
Here is the linkwww.turceksro.sk/xtuweb2/index.php/skolenia/bezpecnostny-technik-abt
Thank you
Hi there!
Sorry for your experience.
Would you please give me your admin access to check the issue for you? Kindly, keep a full site backup before sharing the credentials.
Best Regards
I created a second super user for you
Hello there,
Apologize for the issue you're experiencing. Please add the following CSS code to your Template Options -> Custom Code -> Custom CSS
/* Center the image wrapper */
.sppb-addon-article-layout-content .sppb-article-img-wrap {
display: block;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.sppb-addon-article-layout-content .sppb-article-img-wrap img {
display: inline-block;
}
/* Center the title */
.sppb-addon-article-layout-content .sppb-article-info-wrap h3 {
text-align: center;
margin-top: 10px;
}
This should resolve the problem. Please let us know if you need any further assistance!
Best regards
Hi,
I have got a similar issue but in the blog page. Using your snippets it will change the images into the articles, while I would like just to resize all the image in the list of articles being the same. Please refer to the following link to understand the iussue.
https://www.christianpallaria.com/my-emba-journey.html
Many thanks in advance.
Please create a new forum post regarding your issue.