2013-01-16 17 views
31

मैं होवर पर फीका करने के लिए यह h3 प्राप्त करने का प्रयास कर रहा हूं। क्या कोई मेरी मदद कर सकता है?होवर पर संक्रमण रंग फीका?

एचटीएमएल

<h3 class="clicker">test</h3> 

सीएसएस

.clicker { 
    -moz-transition:color .2s ease-in; 
    -o-transition:color .2s ease-in; 
    -webkit-transition:color .2s ease-in; 
    background:#f5f5f5;padding:20px; 
} 

.clicker:hover{ 
    background:#eee; 
} 
+0

क्या आपका मतलब 'फीड' द्वारा अदृश्य है? – Ovilia

+0

मैं बस इसे # f5f5f5 से #eee – J82

उत्तर

65

क्या आप फीका करना चाहते हैं? background या color विशेषता?

वर्तमान में आप पृष्ठभूमि रंग बदल रहे हैं, लेकिन रंगीन संपत्ति को बदलने के लिए कह रहे हैं। आप सभी गुणों को संक्रमण के लिए all का उपयोग कर सकते हैं।

.clicker { 
    -moz-transition: all .2s ease-in; 
    -o-transition: all .2s ease-in; 
    -webkit-transition: all .2s ease-in; 
    transition: all .2s ease-in; 
    background: #f5f5f5; 
    padding: 20px; 
} 

.clicker:hover { 
    background: #eee; 
} 

अन्यथा बस transition: background .2s ease-in का उपयोग करें।

+0

पर फीका चाहता हूं धन्यवाद! मैं एक मिनट में आपका जवाब स्वीकार करूंगा। – J82

संबंधित मुद्दे