【发布时间】:2015-02-03 07:27:48
【问题描述】:
是否可以像在 CSS http://codepen.io/A973C/pen/hnEaf 中一样在 SVG 中制作径向渐变(我的意思是交通灯中的灯)
.red{
background: red;
background-image: radial-gradient(brown, transparent);
background-size: 15px 15px;
width: 100px;
height: 100px;
border-radius: 50%;
position: absolute;
top: 20px;
left: 35px;
animation: 13s red infinite;
border: dotted 2px red;
box-shadow:
0 0 20px #111 inset,
0 0 10px red;
}
我的 SVG 渐变看起来像这样 http://jsfiddle.net/x9a2Lyx1/ 我真的不明白我如何像在 css 示例中那样重复渐变
【问题讨论】:
标签: css svg radial-gradients