Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #590985

    Hi Kriesi Team,

    I’m using the Portfolio Grid element for my ‘team’ page instead of the team member element You may see how I fully utilized it on the link below. How would I be able to make all the images grayscale until I hover on it and remain in color once I have selected it for its preview?

    Thanks,
    DI

    #591111

    Hi dialedinmarketing!

    try this code in Quick CSS field:

    img.attachment-portfolio.size-portfolio.wp-post-image {
    -webkit-filter: greyscale(100%);
    }
    img.attachment-portfolio.size-portfolio.wp-post-image:hover {
    -webkit-filter: none !important;
    }
    

    Best regards,
    Andy

    #591637

    Hi Andy,

    That piece of code is now in place but it doesn’t seem to work.

    #591670

    Hi!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    .grid-image img {
        filter: grayscale(100%);
        -webkit-filter: grayscale(100%);
        -moz-filter: grayscale(100%);
        -o-filter: grayscale(100%);
        filter: gray;
        -webkit-transition: all .6s ease;
        transition: all .6s ease;
        -moz-transition: all .6s ease;
        -o-transition: all .6s ease;
    }
    .grid-image img:hover {
        filter: grayscale(0%);
        -webkit-filter: grayscale(0%);
        -moz-filter: grayscale(0%);
        -o-filter: grayscale(0%);
        filter: none;
    }

    Cheers!
    Yigit

    #591677

    Hi Yigit,

    That works great for the grayscale effect! Is there a way to have the selected item remain in color?

    Thanks

    #591682

    Hi!

    Yes, please change the code to following one

    .grid-image img {
        filter: grayscale(100%);
        -webkit-filter: grayscale(100%);
        -moz-filter: grayscale(100%);
        -o-filter: grayscale(100%);
        filter: gray;
        -webkit-transition: all .6s ease;
        transition: all .6s ease;
        -moz-transition: all .6s ease;
        -o-transition: all .6s ease;
    }
    .active_portfolio_item .grid-image img, .grid-image img:hover {
        filter: grayscale(0%);
        -webkit-filter: grayscale(0%);
        -moz-filter: grayscale(0%);
        -o-filter: grayscale(0%);
        filter: none;
    }

    Cheers!
    Yigit

    #592222

    Thanks, Yigit. That’s perfect!

    #592234

    Hey!

    You are welcome!
    For your information, you can take a look at Enfold documentation here – http://kriesi.at/documentation/enfold/
    And if there are features that you wish Enfold had, you can request them and vote the requested ones here – https://kriesi.at/support/enfold-feature-requests/
    For any other questions or issues, feel free to post them here on the forum and we will gladly try to help you :)

    Regards,
    Yigit

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Grayscale hover effect on Portfolio Items’ is closed to new replies.