2
所以我打了一下磚牆。我爲某些文字使用了關鍵幀發光,但我也需要應用文字大綱。這是可能的CSS?在CSS中發光文字+文字輪廓(已經使用文字陰影發光)
請參閱附件。文字是綠色的,所以找到一種顏色來補充它很好。我在Excel中演示了幾件事,發現了我喜歡的東西,但不確定如何在CSS中重新創建它。
下面是我想:
http://www.flickr.com/photos/[email protected]/8560198200/
這是我使用至今代碼:
.metric {
font-size: 240%;
font-family:Arial Narrow;
font-weight:700;
color:#138200;
text-shadow: -1px -1px 0 #92d050, 1px -1px 0 #92d050, -1px 1px 0 #92d050, 1px 1px 0 #92d050;
-webkit-animation-name: glow;
-webkit-animation-duration: 3s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
}
@-webkit-keyframes glow {
0% { text-shadow: 0 0 4px green; }
50% {text-shadow: 0 0 20px rgba(19,130,0, 0.5), 0 0 20px rgba(19,130,0, 0.5), 0 0 20px rgba(19,130,0, 0.6),0 0 15px rgba(19,130,0, 0.6) ;}
100% { text-shadow: 0 0 4px green; }
}
我想你可以添加其他元素,並將其放置在第一位,並應用效果的新一? – Jeff 2013-03-15 16:10:16
我會試試這個,好主意。 – Lorenzo 2013-03-15 16:14:08