[Support request] hover on image

Home Forums Support [Support request] hover on image

Home Forums Support hover on image

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1057501
    Katharina

    I created a bar in as a hook with images that lead to new pages. I was able to link the images but I would like to add a overlay when hovering over the image.

    https://test.katisiemens.com/de/energie-booster-einleitung/

    Thanks
    Kati

    #1057660
    David
    Staff
    Customer Support

    Hi there

    is this just a color overlay?

    #1058264
    Katharina

    yes just a overlay, maybe light grey or so.

    #1058389
    David
    Staff
    Customer Support

    Try this CSS:

    .custom-video-container a img {
        vertical-align: middle;
    }
    
    .custom-video-container a {
        position: relative;
    }
    
    .custom-video-container a:after {
        content: '';
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #ccc; /* Change color */
        opacity: 0;
        transition: opacity 0.2s ease-in;
    }
    
    .custom-video-container a:hover:after {
        opacity: 0.5; /* Change transparency */
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.