Kaptinlin Themes Support
Discussions
→ All Categories
Symplex
303
Striking
649
Responsive Beta Questions
23
General Questions
1550
Customization
1550
Usage / How to?
2142
Suggestions
205
3rd Party Plugins & Striking
479
Ver 5.1-5.1.7.1 Series Error Reporting (Closed)
82
Ver 5.0 Series Errors (Closed)
14
Ver 4.0 Series Errors (Closed)
10
Ver 3.0+ Series Errors (Closed)
87
Ver1.0- Ver2.3 Errors (Closed)
24
Activity
Sign In
To insert code use <code>...</code>.
General Questions
Gray scale image effect for a gallery?
Vote Up
0
Vote Down
raikit
July 2012
Is it possible the grayscale image effect to apply for a gallery?
So that the preview images are displayed with this effect?
2 Comments
sorted by
Votes
Date Added
Vote Up
0
Vote Down
mecamecable
August 2012
Hi i ad a comment i would invert the gray scale on thumbnails.
Have the grayscale who's hide on rollover
Vote Up
0
Vote Down
mecamecable
October 2012
Hi,
You can invert like that just change mouOut and mouseOver line.
Take & Paste it in the Custom.js in JS FOLDER.
var enable_image_grayscale_hover = function(image){
$(this).stop().animate({opacity:0}, grayscale_outSpeed);
// clone image
$('img', image).each(function(){
var el = $(this);
el.css({"position":"absolute"}).wrap("
").clone().addClass('img_grayscale').css({"position":"absolute","z-index":"100","opacity":"0"}).insertBefore(el).queue(function(){
var el = $(this);
el.parent().css({"width":this.width,"height":this.height});
el.dequeue();
});
this.src = grayscale(this.src);
});
if(typeof grayscale_animSpeed=='undefined'){
grayscale_animSpeed = 1000;
}
if(typeof grayscale_outSpeed=='undefined'){
grayscale_outSpeed = 1000;
}
// Fade image
$('img', image).mouseover(function(){
$(this).parent().find('img:first').stop().animate({opacity:1}, grayscale_animSpeed);
})
$('img', image).mouseout(function(){
$('img', image).fadeIn(500);
});
};
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
7,036
Symplex
303
Striking
6,733
↳ Responsive Beta Questions
23
↳ General Questions
1,550
↳ Customization
1,550
↳ Usage / How to?
2,142
↳ Suggestions
205
↳ 3rd Party Plugins & Striking
479
↳ Ver 5.0 Series Errors (Closed)
14
↳ Ver 4.0 Series Errors (Closed)
10
↳ Ver 3.0+ Series Errors (Closed)
87
↳ Ver1.0- Ver2.3 Errors (Closed)
24
In this Discussion
mecamecable
October 2012
Powered by Vanilla