首页
极刻
圈子
教程
开源
极客社区
写文章
发极刻
建圈子
发项目
登录 / 注册
返回教程:SVG 教程
TRY RUN / 在线示例
SVG 教程 沿一个运动路径移动的文本
SVG 教程 沿一个运动路径移动的文本
源代码
运行
<!DOCTYPE html> <html> <body> <p><b>Note:</b> This example only works in Firefox and Google Chrome.</p> <svg xmlns="http://www.w3.org/2000/svg" version="1.1"> <g transform="translate(100,100)"> <text id="TextElement" x="0" y="0" style="font-family:Verdana;font-size:24"> It's SVG! <animateMotion path="M 0 0 L 100 100" dur="5s" fill="freeze" /> </text> </g> </svg> </body> </html>
运行结果