所以我使用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
沒有看到這個bug。 firefox 48 –
在Chrome中沒有真正看到它......但是您可能想要將「outline:none;」添加到錨CSS。它與「文字修飾」相結合,消除了懸停事件的默認瀏覽器樣式。一些瀏覽器大綱以及裝飾。好的脈衝順便說一下。 – Scott
在哪裏使用紅色的顏色? –