I have graph in cytoscape.js and i want some of the edges to be dashed (or something similar) and a specific edge to have an effect animation like (blinking, animated, having something moving over it ..something like that). Are there any examples?
You can find these things at the official documentation:
In order to make edges dotted or dashed, do as said here
cytoscape({
container: document.getElementById('cy'),
elements: {
nodes: [
...
],
edges: [
...
]
},
layout: {
...
},
style: [{
selector: 'edge',
style: {
'line-style': 'data(style)' //e.g dotted
}
}]
});
Animations are also explained in the docs here. If you need help with the animations, you will have to be more specific and provide the code (what you have tried already).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With