My goal is to develop a personalized animated connection lines in reactflow, rather than using the default dashed line that appears when the animated: true
prop is applied.
I am aware that we can customize the styling by using the following code snippet:
setEdges((eds) => [
...eds,
{
source: 2,
targetHandle: 'bottom',
target: 1,
sourceHandle: 'top',
id: 1,
type: 'smoothstep',
style: { stroke: `${css}`, strokeWidth: 4 },
},
]);
My aim is to achieve a similar effect as shown in this example using custom CSS: