2016-08-21 75 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导致 –