Topic: Greyscale thumbnails

Hi ya, I was wondering if anybody has any tips as to how I would turn the thumbnails greyscale?  The only thumbnail I would like in colour is the active thumb currently in use.

Any tips or advice gratefully received. Thanks.

Re: Greyscale thumbnails

Try adding the following code to the end of your gallery's 'jbcore/classic/theme.css' file:

.jb-idx-thumb {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+, Firefox on Android */
    filter: gray; /* IE6-9 */
    -webkit-filter: grayscale(100%); /* Chrome 19+, Safari 6+, Safari 6+ iOS */
}
.jb-thm-thumb-selected {
    filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'1 0 0 0 0, 0 1 0 0 0, 0 0 1 0 0, 0 0 0 1 0\'/></filter></svg>#grayscale");
    -webkit-filter: grayscale(0%);
}

Re: Greyscale thumbnails

Hi Steven, thanks for your response.  I have used CSS filters elsewhere on the site, but the problem I have is that that method doesn't work on non CSS3 browsers, such as some phones and tablets.  I was wondering if there was a javascript way of implementing greyscale that is compatible with most browsers?

Re: Greyscale thumbnails

There is a tutorial on how to convert images to grayscale using JavaScript on this web page.
However, I do not think that there is any way to integrate it into Juicebox-Pro to achieve your goal of only having the selected thumbnail in color.