Animate complex SVG paths with JavaScript. Create dynamic wave patterns and complex shapes.
const wavePath = (progress) => {
let path = 'M 0,50';
for (let x = 0; x <= 100; x += 2) {
const y = 50 + 20 * Math.sin(x / 10 + progress);
path += ` L ${x},${y}`;
}
return `path('${path} Z')`;
};