opacity

Gets or sets the element opacity.

Example - setting opacity on an element

<div id="surface"></div>
<script>
    var draw = kendo.drawing;

    var path = new draw.Path();
    path.moveTo(0, 0).lineTo(100, 100);
    path.opacity(0.5);

    var surface = draw.Surface.create($("#surface"));
    surface.draw(path);
</script>

Parameters

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

ReturnsNumber The current element opacity.

In this article
Not finding the help you need? Improve this article