2013-01-15 307 views
11

我有一個背景圖像在我的css3與圖像和漸變定義。當班級從on_time變爲 - > too_late或反之亦然時,我也想要進行轉換。css背景圖像漸變

我無法獲得漸變過渡。這是不是支持在CSS3?

感謝

div.too_late 
{ 
    color: White;   
    background-image: url(../Content/images/uit_white.png), -webkit-linear-gradient(top, #feb233 0%, #f39801 100%);  

    -webkit-transition-property: background-image, color; 
    -webkit-transition-duration: 5s;  
} 

div.on_time 
{ 
    color: #222;   
    background-image: url(../Content/images/uit_black.png), -webkit-linear-gradient(top, yellow 0%, #99ff33 100%);  

    -webkit-transition-property: background-image, color; 
    -webkit-transition-duration: 5s;   
} 

回答