首先,这是链接(单击任意图块):http : //www.google.com/design/#resources
我已经看过代码
<svg width="100%" height="100%" overflow="hidden">
<defs></defs>
<g>
<ellipse cx="27.5" cy="189.46875" rx="20" ry="20" stroke="none" fill="white" class="ripple" fill-opacity="0.5" style="-webkit-transform: scale(1); opacity: 0;">
</ellipse>
</g>
</svg>
单击时,在单击时会生成上述椭圆。
任何人都可以在点击时帮助创建它吗?
使用event.pageX
和event.pageY
在事件处理程序中查找鼠标坐标。使用这些值定位圆。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句