W
W
wakenbyWork2021-06-21 12:45:52
css
wakenbyWork, 2021-06-21 12:45:52

Class with filter: grayscale(100%); breaks fancybox?

Good afternoon!

I use this class for a bw effect on the site, and I hang it on the body:

.control-color-dark {
    -webkit-filter: grayscale(100%);
                 filter: grayscale(100%);
}


And everything is fine, the whole site becomes black and white. And everything would be fine, but the fancybox jquery plugin stops working correctly ((

Here is a screenshot of how fancybox works without the bw effect on the site

60d05e8b0dc90824253899.jpeg


Here is a screenshot with a bw effect on the site

60d05f52a3c55014455154.jpeg


PS: How exactly fancybox breaks down - It stops resizing photos normally, they go to full size and it's impossible to view them in fancybox... Paging stops working, in general, scripts break... And control buttons also disappear =(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wakenbyWork, 2021-07-05
@wakenbyWork

In general, you need to hang a class with a filter not on body, but on html, then everything works fine. I don't know why a class with filter set to body breaks scripts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question