Hover on photos

  • Posted in : Read WP
  • mindedmind
    Participant

    How do I add a fade to my posted photos (on front page and in posts) so that they fade to white a little bit when the cursor goes over them?

    Thank you.

    Mehmet S.
    Keymaster

    Hi, use this in your custom css field:

    .featured-image img
    {
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    }
    
    .featured-image img:hover
    {
    opacity: 0.7;
    filter: alpha(opacity=70);
    }
    

    Thanks

    mindedmind
    Participant

    Thanks for going through the trouble Mehmet.

    I copy and pasted that text into the css field (theme options > style> custom css). When i refreshed my page, nothing happened.

    Any ideas?

    mindedmind
    Participant

    Nevermind. I just had to set the image to featured image.

    Thanks it works great!

    Mehmet S.
    Keymaster

    You are welcome!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register