Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #439652

    Hi there

    I’ve inserted a masonry item with a custom ID which i’d like to begin at grayscale then when you hover over each item changes to colour. I’ve got it working with the following code but the whole section changes to colour not just the individual item. Is there a way to fix? Thanks

    #work-other .av-fixed-size .av-masonry-image-container {
      -webkit-filter: grayscale(1);
      filter: grayscale(1);}
    #work-other:hover .av-fixed-size .av-masonry-image-container {
        -webkit-filter:none;
      filter: none;
    -webkit-transition: all 0.4s linear;}
    #440431

    Hi raslade!

    Try this instead.

    #work-other .av-fixed-size .av-masonry-image-container {
      -webkit-filter: grayscale(1);
      filter: grayscale(1);}
    #work-other .av-fixed-size .av-masonry-image-container:hover {
        -webkit-filter:none;
      filter: none;
    -webkit-transition: all 0.4s linear;}
    

    Cheers!
    Elliott

    #440442

    Hi Elliott – marvellous. How annoying I was nearly there but had the hover in the wrong place.

    Thank you.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Fixed size masonry grayscale, then colour on hover’ is closed to new replies.