There's a fantastic tutorial here: https://youtu.be/UTHgr6NLeEw by Fireship which demonstrates using to create the SVG and then animate with CSS. This workflow is very easy and Figma is a very useful tool to create SVGs.
A great workflow is like so:
Have a play with the html on the repo below for the first link above:
The second url above with multiple examples is here: