Hover Image Addon - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Hover Image Addon

Laurent

Laurent

SP Page Builder 3 years ago

Hi,

I need to create an image and make an hover effect to display another image, with an hyperlink. which addon can be relevant?

Thanks L.

0
9 Answers
Pavel
Pavel
Accepted Answer
3 years ago #84018

Hi Laurent.

Not certainly in that way.

Add the class to the addon

And try following code

Opacity effect

.image-change .sppb-addon-single-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/images/your-image.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transition: .3s;
}
.image-change .sppb-addon-single-image-container:hover::before {
    opacity: 1;
}

Scale effect

.image-change .sppb-addon-single-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/images/your-image.jpg);
    background-size: cover;
    background-position: center;
    transform: scale(0);
    pointer-events: none;
    transition: .3s;
}
.image-change .sppb-addon-single-image-container:hover::before {
  transform: scale(1);

Slide effect

.image-change .sppb-addon-single-image-container {
    overflow: hidden;
}
.image-change .sppb-addon-single-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/images/your-image.jpg);
    background-size: cover;
    background-position: center;
    transform: translateX(-100%);
    pointer-events: none;
    transition: .3s;
}
.image-change .sppb-addon-single-image-container:hover::before {
    transform: translateX(0);
}
1
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 3 years ago #83910

Hi

Thanks for contacting us. Could you please give me any demo of this?

-Regards.

0
Laurent
Laurent
Accepted Answer
3 years ago #83921

I have no demo, this is just a question. I saw on image addon, this is not possible to do an hover effect with hyperlink on the image. so how to do that?

0
Rashida Rahman
Rashida Rahman
Accepted Answer
Support Agent 3 years ago #83934

Hi there!

Thanks for your query.

You may try the image overlay addon. It allows you to add overlay effects. You need to add some additional CSS to made some changes to achieve what you want though. You can add link in the title and/or content, but not in the image.

Have a nice day!

Best Regards

0
Laurent
Laurent
Accepted Answer
3 years ago #83947

Ok I see but this is not my need. I need to add the hyperlink on the image. so how to do that?

0
Pavel
Pavel
Accepted Answer
3 years ago #83951

Hi Laurent. You can use Image addon + CSS. Or Flip-Box addon + CSS

0
Laurent
Laurent
Accepted Answer
3 years ago #83957

@pavel: ok thanks with image addin, I assume css should be something like this for hover ?

#addonId .sppb-img-responsive:hover {
  background-image: url('path_to_image;');
}
0
Laurent
Laurent
Accepted Answer
3 years ago #84044

@pavel many thanks sounds good ;-)

0
Pavel
Pavel
Accepted Answer
3 years ago #84052

Hi Laurent. You are wellcome

0