opacity

Gets or sets the element opacity. Inherited from Element.opacity

Parameters

opacity NumberThe element opacity. Ranges from 0 (completely transparent) to 1 (completely opaque).

Returns

Number The current element opacity.

In this article