I have a cytoscape graph with directional edges. They are set like that:
style: {
...
'line-color': '#FFFFFF',
'target-arrow-shape': 'triangle',
'target-arrow-color': '#FFFFFF',
'source-arrow-color': '#FFFFFF',
....
},
I try to low the opacity of some edges like that:
cyElement.animate({
style: {
opacity: 0.2,
},
duration: 500,
});
The style is set perfectly for the edges except for the tip of the arrow as you can see on the screenshot below:
Does someone has a solution for this ?

I prepared a snippet with your desired outcome. As you can see, the style can be set by calling
.animate();on a collection of nodes and/or edges. I choose the closedNeighborhood function, but you can use any other collection as you please. I can't reproduce your problem, though you should be able to use my code to achieve the correct behaviour in your code.