My SVG animation was functioning perfectly on CodePen.
However, when I integrated it into my website, it suddenly stopped working. The console displayed the following error message:
Uncaught TypeError: Cannot read property 'getTotalLength' of null
at animatePath (sf.js:4)
at sf.js:21
4 var length = path.getTotalLength();
21 animatePath('#bigs', 'stroke-dashoffset 0.6s ease-in-out');