Can I insert text inside moving svg rectangles | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Can I insert text inside moving svg rectangles

<svg width="300" height="450"> <rect width="280" height="50" fill="green"> <animate attributeName="y" from="400" to="0" dur="7s" fill="freeze" repeatCount="2"/> </rect>

8th Dec 2019, 11:07 AM
Abdihakim Ismail
Abdihakim Ismail - avatar
1 Answer
+ 1
I actually don't know if you can, but if you just want moving rectangles with text inside you could use html elements with css background or border have them move using keyframe and specify the text as you normally do with elements
11th Dec 2019, 7:07 PM
Jakob Meier
Jakob Meier - avatar