Closed Pietroro closed 4 years ago
Hi, you need to tag the <Anime>
element with an svg
attribute so anime would generate a <g>
instead:
<svg viewBox="0 0 800 600">
<Anime svg strokeDashoffset={[anime.setDashoffset, 0]} direction={'alternate'} loop={true}>
<path fill="none" stroke="black" strokeWidth="15" d="M 0 450 ... 450 "/>
</Anime>
</svg>
I see, thank you very much for your help. I should have read the documentation more carefully!
Hi, I was having an issue using the SVG line drawing functionality. When trying to update the strokeDashoffset param something weird happens and the SVG disappears. Instead of updating the path it seems like the div style is updated.
It seems to generate the following:
Any help would be greatly appreciated, thanks!