मैंने टैग में छवि को विलुप्त करने के लिए इतने सारे प्लगइन देखा।सीएसएस का उपयोग कर div की पृष्ठभूमि छवि को कैसे असंतृप्त करना है?
लेकिन मैं नहीं पृष्ठभूमि छवि desaturate के लिए किसी भी बात है, एक छवि है, जिसके लिए एक पृष्ठभूमि के रूप में प्रयोग किया जाता है पता चला (एक तत्व (div)।
वहाँ के साथ हॉवर पर पृष्ठभूमि छवि desaturate करने के लिए एक रास्ता है 2 पृष्ठभूमि का उपयोग कर (Ie छवि स्प्राइट एक बी & डब्ल्यू और अन्य रंग है)
मैं इस का उपयोग कर छवि sprites की तरह कुछ कर सकते हैं।
// Initially color Image
$(<element>).mouseover(function(e){
jQuery(this).children(":first").stop().animate(
{
'background-position': <some coordinates>
// Coordinates of b&w Image
},
100
);
e.stopPropagation();
})
.mouseout(function(e){
jQuery(this).children(":first").stop().animate(
{
'background-position': <some coordinates>
// Coordinates of color Image
},
100,
settings.easingType
);
e.stopPropagation();
});
लेकिन मैं इस चाहते। मैं चाहता हूँ घ फ्लाई पर असंतृप्त पृष्ठभूमि छवि। कृपया मदद करें।
मुझे भी रूचि है, क्या आपने कोई प्रगति की है? – bluantinoo