I just discovered font awesome and I want to use it in my website.
The problem is, I want my font to be colored with a gradient.
I found this code that works on standard text, but I can't make it work with a icon from Font Awesome
Here is what I tested:
<style>
.big-icon {
font-size: 72px;
background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#333));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
</style>
<span class="big-icon">
Hello world
</span>
<i class="icon-beaker"></i>
<span class="big-icon">
<i class="icon-beaker"></i>
</span>
And it displayed a "Hello world" with a gradient, the icon I want and then nothing...
Anyone have any idea ?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…