简体   繁体   English

如何制作超棒的字体CSS

[英]How to make font-awesome glow css

I have used font-awesome of 我用过的字体真棒

<i class="fa fa-circle-o text-red"></i>

It shows a circle with red outline. 它显示带有红色轮廓的圆圈。 I want it to become full red circle and blink. 我希望它变成完整的红色圆圈并闪烁。

Sorry I am not a front end developer so I couldn't think of its solution. 抱歉,我不是前端开发人员,所以我无法考虑其解决方案。

what I tried to do is 我试图做的是

.text-red
{
    background-color: red;
}

but this didn't work. 但这没用。 Can anyone help? 有人可以帮忙吗? Thank you 谢谢

As said you could try css animation , already using background you can change background-color , now using opacity you can create that blinking effect as below, 如前所述,您可以尝试使用css animation ,已经使用background更改了background-color ,现在使用opacity可以create如下所示的blinking effect

 .fa{ color:red; background:red; border-radius:50%; animation:op 3s ease infinite; } @keyframes op{ 0%{ opacity:0; } 50%{ opacity:1; } 100%{ opacity:0; } } 
 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> <i class="fa fa-circle-o text-red"></i> 

You can Just Use css rules background:red, border-radius:100% and color:red; 您可以只使用CSS规则background:red, border-radius:100%color:red;

 .text-red { color:red; background: red; border-radius: 100%; } 
 <link rel="stylesheet" href="http://fontawesome.io/assets/font-awesome/css/font-awesome.css" > <i class="fa fa-circle-o text-red"></i> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM