What i want is to create a custom animated connection lines in reactflow. i dont want the one provided by reactflow that is a dashed line when given the props anitmated: true
what i know is we can give them custom styling using
setEdges((eds) => [
...eds,
{
source: 2,
targetHandle: 'bottom',
target: 1,
sourceHandle: 'top',
id: 1,
type: 'smoothstep',
style: { stroke: `${css}`, strokeWidth: 4 },
},
]);
i want to create something like this using custom css

I created a custom Edge with the following code. Posting here incase someone else is looking for this answer