This commit is contained in:
21
test-animate.svg
Normal file
21
test-animate.svg
Normal file
@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="100%" height="100%"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<!-- Your original SVG code here -->
|
||||
<path id="path1" d="M10 50 L20 50"></path>
|
||||
<path id="path2" d="M30 50 C40 70, 60 90, 80 110"></path>
|
||||
|
||||
<!-- The animation elements -->
|
||||
<animateMotion
|
||||
path="M10 50 S20 50 20 50"
|
||||
dur="2000ms"
|
||||
repeatCount="indefinite">
|
||||
</animateMotion>
|
||||
<animateMotion
|
||||
path="M30 50 S40 70, 60 90, 80 110"
|
||||
begin="2s"
|
||||
dur="2000ms"
|
||||
repeatCount="indefinite">
|
||||
</animateMotion>
|
||||
</svg>
|
After Width: | Height: | Size: 569 B |
Reference in New Issue
Block a user