帮我写一个好看的有关六一儿童节快乐的svg动态图片吗 我给你权限 请你用代码展示出来
时间: 2023-08-28 18:18:39 浏览: 42
好的,我可以帮你写一个简单的六一儿童节快乐的SVG动态图片。以下是代码:
```svg
<svg width="300" height="300">
<!-- 矩形背景 -->
<rect x="0" y="0" width="300" height="300" fill="#F2F2F2"/>
<!-- 球 -->
<circle cx="150" cy="150" r="80" fill="#FFC107">
<animate attributeName="r" values="75;80;75" dur="2s" repeatCount="indefinite"/>
<animate attributeName="fill" values="#FFC107;#F44336;#9C27B0;#2196F3;#4CAF50;#FFC107" dur="6s" repeatCount="indefinite"/>
</circle>
<!-- 玩具熊 -->
<path d="M210,140 C210,110 240,110 240,140 C240,170 210,170 210,140" fill="#795548">
<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0 225 150" to="360 225 150" dur="4s" repeatCount="indefinite"/>
</path>
<path d="M230,120 L240,110 L250,120 L240,130 L230,120" fill="#795548">
<animateTransform attributeName="transform" attributeType="XML" type="rotate" from="0 225 150" to="360 225 150" dur="4s" repeatCount="indefinite"/>
</path>
<!-- 文字 -->
<text x="50%" y="60%" fill="#333" text-anchor="middle" font-size="30" font-family="Arial">六一儿童节快乐!</text>
</svg>
```
你可以将这段代码复制到一个SVG编辑器中,或者在HTML中使用`<svg>`标签嵌入显示。这个动态图片包含了一个颜色变化的球和一个旋转的玩具熊,以及一句祝福的文字。希望你喜欢!