Skip to content

ele.transparent()

eles.transparent — Collection > Style. Cytoscape.js signatures, parameters and return contract.

eles.transparent — Collection › Style

Preview · Collection › Style

Read in the complete API reference · All API members

// Whether the first element is fully transparent — its effective opacity, with compound ancestors folded in, is exactly 0
ele.transparent(): boolean

Whether the first element is fully transparent — its effective opacity, with compound ancestors folded in, is exactly 0.

Returns boolean

true when invisible through opacity

Example

console.log(eles.transparent()); // false

Example graph and handle setup