[Resolved] Icon/color overlay on image: hover

Home Forums Support [Resolved] Icon/color overlay on image: hover

Home Forums Support Icon/color overlay on image: hover

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

    Is there a built-in functionality on GP Premium to recreate an effect similar to this? https://www.w3schools.com/howto/howto_css_image_overlay_icon.asp

    I have small youtube screenshots on a page that link to Youtube videos. I would like a semi-transparent white fade + Youtube icon on hover to indicate they link to external content.

    I couldn’t get the tutorial above to work… I have provided a link to a similar effect below.

    #1001602
    David
    Staff
    Customer Support

    Hi there,

    can you link us to your Site so we can see what it would involve

    #1002155
    fabien

    I edited the hidden link in the original post. Thanks!

    #1002177
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This should work with the first one, as you’ve added a youtube-over class to the container. That class doesn’t seem to exist in the other containers:

    .youtube-over a:after {
        content: "";
        background: #fff url(https://YOURURLHERE.com/wp-content/uploads/youtube.svg);
        background-repeat: no-repeat;
        background-position: center center;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        opacity: 0;
        transition: opacity 500ms ease;
    }
    
    .youtube-over a:hover:after {
        opacity: 1;
    }
    #1002191
    fabien

    fantastic, thank you!

    #1002737
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

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