Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1299280
    eltin7
    Participant

    Hello,

    I need some help for adding a black and white hoover effect on some images. On my webesite at this page : http://mediadome.ro/parteneri , I have uploaded 4 images and I would like what is the way to create this hoover effect. I want those images to be grey and when you put the mouse over them, the images to appear coloured.

    Thank you!

    #1299292
    Thai
    Moderator

    Hi There,

    Please add the following CSS:

    .page-id-1083 .x-img img {
      -webkit-filter: grayscale(100%);
      -webkit-transition: .5s ease-in-out;
      -moz-filter: grayscale(100%); 
      -moz-transition: .5s ease-in-out;
      -o-filter: grayscale(100%); 
      -o-transition: .5s ease-in-out;
      filter: grayscale(100%);
    }
    .page-id-1083 .x-img img:hover {
      -webkit-filter: grayscale(0%);
      -webkit-transition: .5s ease-in-out;
      -moz-filter: grayscale(0%);
      -moz-transition: .5s ease-in-out;
      -o-filter: grayscale(0%);
      -o-transition: .5s ease-in-out;
      filter: grayscale(0%);
    }

    Hope it helps 🙂

    #1300239
    eltin7
    Participant

    That worked great! Thank you a lot 🙂

    #1300242
    Friech
    Moderator

    You’re more than welcome, glad we could help.

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1299280 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>