svg动起来
1 2 3 4 5 6 | <svg width= "320" height= "320" xmlns= "http://www.w3.org/2000/svg" > <g> <text font-family= "microsoft yahei" font-size= "120" y= "160" x= "160" >马</text> <animateTransform attributeName= "transform" begin= "0s" dur= "10s" type= "rotate" from= "0 160 160" to= "360 160 160" repeatCount= "indefinite" /> </g> </svg> |
1 2 3 4 5 6 | <svg width= "320" height= "320" xmlns= "http://www.w3.org/2000/svg" > <g> <text font-family= "microsoft yahei" font-size= "80" y= "100" x= "100" >马</text> <animateTransform attributeName= "transform" begin= "0s" dur= "3s" type= "scale" from= "1" to= "1.5" repeatCount= "indefinite" /> </g> </svg> |
1 2 3 4 5 6 | <svg width= "360" height= "200" xmlns= "http://www.w3.org/2000/svg" > <text font-family= "microsoft yahei" font-size= "40" x= "0" y= "0" fill= "#cd0000" >马 <animateMotion path= "M10,80 q100,120 120,20 q140,-50 160,0" begin= "0s" dur= "3s" repeatCount= "indefinite" /> </text> <path d= "M10,80 q100,120 120,20 q140,-50 160,0" stroke= "#cd0000" stroke-width= "2" fill= "none" /> </svg> |
1 2 3 4 5 6 | <svg width= "360" height= "200" xmlns= "http://www.w3.org/2000/svg" > <text font-family= "microsoft yahei" font-size= "40" x= "0" y= "0" fill= "#cd0000" >马 <animateMotion path= "M10,80 q100,120 120,20 q140,-50 160,0" begin= "0s" dur= "3s" rotate= "auto" repeatCount= "indefinite" /> </text> <path d= "M10,80 q100,120 120,20 q140,-50 160,0" stroke= "#cd0000" stroke-width= "2" fill= "none" /> </svg> |
1 2 3 4 5 6 | <svg width= "320" height= "200" xmlns= "http://www.w3.org/2000/svg" > <text font-family= "microsoft yahei" font-size= "120" y= "160" x= "160" >马 <animate attributeName= "x" from= "160" to= "60" begin= "0s" dur= "3s" repeatCount= "indefinite" /> <animate attributeName= "opacity" from= "1" to= "0" begin= "0s" dur= "3s" repeatCount= "indefinite" /> </text> </svg> |
1 2 3 4 5 6 | <svg width= "320" height= "200" xmlns= "http://www.w3.org/2000/svg" > <text font-family= "microsoft yahei" font-size= "120" y= "150" x= "160" > 马 <animate attributeName= "x" values= "160;40;160" dur= "3s" repeatCount= "indefinite" /> </text> </svg> |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· AI与.NET技术实操系列(五):向量存储与相似性搜索在 .NET 中的实现
2021-01-03 D3JS笔记
2020-01-03 MAC升级Nodejs和Npm到最新版