blend modes on hover

  • Unknown's avatar

    Hi There, long time listener first time caller.
    The blog in question is
    http://graysartschoolaberdeen.com/

    The effect I want to create is a colour overlay on hover on the blog post feature images on the home page. Similar to the hover on the Projects but I dont need the scaling just a colour overlay. I was attempting this using multiply blend modes and colour backgrounds with no success. I currently have a opacity change and box shadow on hover (see code below). Is the overlay effect possible? Thanks in advance.

    #home-posts.home-section a:hover img {
    opacity: 1;
    transition: opacity .55s ease-in-out;
    -moz-transition: opacity .55s ease-in-out;
    -webkit-transition: opacity .55s ease-in-out;
    box-shadow: 0px 5px 10px rgba(0,0,0,.3) ;
    }

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    This CSS will set a background color for the a tag wrapping the image. Now you just need to get rid of the CSS that set the opacity of the image, and instead reduce the opacity on hover.

    #home-posts.home-section .small a {
      background-color: yellow;
      display: block;
    }
    
    #home-posts.home-section .small h2 a, #home-posts.home-section .small .moreLink a {
      background: none;
    }
  • Unknown's avatar

    That’s brilliant worked first time! been banging my head against that one most of this week!

  • Unknown's avatar

    Glad I could help.

  • The topic ‘blend modes on hover’ is closed to new replies.