I'm using vis network in a React JS app and so far everything has been working like a charm. I have a group of image nodes with an initial opacity of 0.5 – however, on some onHover/ onClick events, I want their opacity to change to 1. I've tried the below:
nodes.update( { id: id, opacity: 1, hidden: false } )
This is working very well for switching an image node's 'hidden' prop between true/false, and also for things like changing a (non-image) node's color onHover... But it is NOT working for opacity – it always remains 0.5 (= the initial setting). Any thoughts on why this may be?