2016-08-21 35 views
3

所以我使用CSS創建了這些脈動的社交媒體按鈕。 經過幾次脈動之後,您可以看到instagram圖標右側有一個小紅線。任何想法是什麼導致這一點,以及如何刪除它?在CSS中激發社交媒體按鈕

https://jsfiddle.net/pm9hkyy8/2/

段:

@keyframes pulser { 
    from { 
    color: rgba(0, 0, 0, 0.2); 
    } 
    to { 
    color: rgba(255, 255, 255, 1); 
    } 
} 
#footer a { 
     color: #999; 
     color: rgba(185, 186, 187, 0.5); 
     animation-name: pulser; 
     animation-duration: 2s; 
     animation-iteration-count: infinite; 
     animation-direction: alternate; 
     animation-timing-function: ease-in-out; 
} 

/* Stopping the pulsation on hover for that particular child */ 
a:hover { 
    color: #bbb; 
    color: #b9babb; 
    animation-name: pulser; 
    animation-duration: 2s; 
    animation-iteration-count: 0; 
    animation-direction: alternate; 
    animation-timing-function: ease-in-out; 
} 

而且,隨意使用此代碼,並改善它:)

截圖:http://puu.sh/qJBkj/d3701d834e.png

+0

沒有看到這個bug。 firefox 48 –

+0

在Chrome中沒有真正看到它......但是您可能想要將「outline:none;」添加到錨CSS。它與「文字修飾」相結合,消除了懸停事件的默認瀏覽器樣式。一些瀏覽器大綱以及裝飾。好的脈衝順便說一下。 – Scott

+0

在哪裏使用紅色的顏色? –

回答

0

刪除以下CSS裏面是空的,並導致該行

​​

https://jsfiddle.net/Nagasai_Aytha/pm9hkyy8/4/

+0

嗯。這很奇怪哈哈。爲什麼空的減速會導致這種情況?此外,只在最後一個按鈕上。 – Joel

+0

是@Joel,刪除後...它沒有顯示出來,因爲沒有任何錯誤或額外的css導致 –