setting images in the list of articles - Forum | JoomShaper
Solved SP Page Builder

setting images in the list of articles

Asked by mti 1 year ago Last activity 1 year ago

Accepted answer

Marked as the solution
Atick Eashrak Shuvo Staff

Hello 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

mti Asked this

Can you please write me a more detailed post so I can add it to the template?
Thank you

mti Asked this

Thank you, it worked

Atick Eashrak Shuvo Staff

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.

Atick Eashrak Shuvo Staff

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

mti Asked this

I created a second super user for you

Atick Eashrak Shuvo Staff

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

Christian Pallaria

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.

Atick Eashrak Shuvo Staff

Please create a new forum post regarding your issue.

Log in to reply.