【发布时间】:2011-06-22 02:38:39
【问题描述】:
我找到了这篇文章:
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}
}
对上面的想法有什么看法?
我有什么想法可以创造出这样的东西,就好像戒指会动画并消失一样?
【问题讨论】: