Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #722966

    Hello,

    We are using the ALB to display some blog articles on the homepage. How do we keep the overlay on the image at all times instead of only on hover? We can not use the masonry blog because we have other elements mixed in. We are using the regular blog but offsetting them to get the desired look we need.

    I created a class and some CSS but it only works once I hover, then the overlay stays. But it does not show when the page first loads.

    I would also like to have the image slightly increase on hover like the regular images can.

    You can see the blog articles in the section section. The top right and bottom right have overlays.

    Hers is the CSS I am using:

    .avia_transform .blog-third-section a .image-overlay,
    .avia_transform .blog-third-section a:hover .image-overlay {
    opacity: 0.85 !important;
    display: block !important;
    background: #006b86 !important;
    }
    .avia_transform .blog-section-fourth a .image-overlay,
    .avia_transform .blog-section-fourth a:hover .image-overlay {
    opacity: 0.75 !important;
    display: block !important;
    background: #000 !important;
    }

    Any help you can provide will be much appreciated.

    Thank You.

    #724100

    Hey bjornwallman,

    Thank you for using Enfold

    The display property of the overlay is set to “none” in the style.css file.

    .image-overlay-inside, .image-overlay {
        display: none !important;
    }

    P.S: Awesome work! thumbsup

    Best regards,
    Ismael

    #724114

    Thanks Ismael.

    That is set to display none because we do not want all images to have the image overlay. We wanted to target only those 2.

    Even if I take that style out, it still does not display the the overlay on the image at all times. Only after hover.

    It is out now. Not sure what we are doing wrong.

    Thanks

    #725484

    Hi,

    Try replacing this code:

    .avia_transform .blog-third-section a .image-overlay,
    .avia_transform .blog-third-section a:hover .image-overlay {
    opacity: 0.85 !important;
    display: block !important;
    background: #006b86 !important;
    }
    .avia_transform .blog-section-fourth a .image-overlay,
    .avia_transform .blog-section-fourth a:hover .image-overlay {
    opacity: 0.75 !important;
    display: block !important;
    background: #000 !important;
    }

    to

    .avia_transform .blog-third-section a .image-overlay,
    .avia_transform .blog-third-section a:hover .image-overlay {
      opacity: 0.85 !important;
      display: block !important;
      background: #006b86 !important;
      left: 0 !important;
      top: 0 !important;
    }
    
    .avia_transform .blog-section-fourth a .image-overlay,
    .avia_transform .blog-section-fourth a:hover .image-overlay {
      opacity: 0.75 !important;
      display: block !important;
      background: #000 !important;
      left: 0 !important;
      top: 0 !important;
    }

    Let us know if this helps. :)

    Best regards,
    Nikko

    #726390

    Thanks Nikko! That works great for desktop.

    However, I am still having the issue on mobile. It is fine when shrinking the browser down, but not when actually viewing it on my phone.

    Do you know why that would be?

    Thanks

    #727715

    Hi,

    I’m not really sure, can I ask what phone are you using to test? is it an iphone? also please post a screenshot.

    Best regards,
    Nikko

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.