我发现这篇文章:如何创建使用WebKit的动画效果脉冲 - 向外五环
http://www.zurb.com/article/221/css3-animation-will-rock-your-world对CSS3动画。
我想创建上面看到,但在个人网站的网站上类似的效果:www.imfrom.me
在那里我有缅因州,有红色提示框。我想通过指示位置的箭头创建一个脉冲环。
的代码更新:
我想出了这个以下(这里试试吧:http://jsfiddle.net/ftrJn/),你可以告诉它的接近,我如何能得到它从中心生长的任何想法:
在上述.gps_ring {
border: 3px solid #999;
-webkit-border-radius: 30px;
height: 18px;
width: 18px;
position: absolute;
left:20px;
top:214px;
}
.gps_ring{
-webkit-animation-name: pulsate;
-webkit-animation-duration: 1s;
-webkit-animation-timing-function: ease-in-out;
-webkit-animation-iteration-count: infinite
}
@-webkit-keyframes pulsate {
0% { width:1px;height: 1px; opacity: 0.0}
10% { width:3px;height: 3px; opacity: .20}
20% { width:5px;height: 5px; opacity: .40 }
30% { width:7px;height: 7px; opacity: .60 }
40% { width:9px;height: 9px; opacity: .80 }
50% { width:11px;height: 11px; opacity: 1.0}
60% { width:13px;height: 13px; opacity: .80}
70% { width:15px;height: 15px; opacity: .60}
80% { width:17px;height: 17px; opacity: .40}
90% { width:19px;height: 19px; opacity: .20}
100% { width:21px;height: 21px; opacity: 0.0}
}
的思考?
任何关于如何创建类似这样的东西的想法,就好像制作出动画并消失一样?
看起来很棒!感谢指针。缓解让它从中心增长? – Coughlin 2011-02-06 20:28:47