New to Kendo UI for jQuery? Start a free 30-day trial

Offset

configuration

The stop offset from the start of the element. Ranges from 0 (start of gradient) to 1 (end of gradient).

offset

Number
<div id="surface"></div>
<script>
var draw = kendo.drawing;
var surface = draw.Surface.create($("#surface"));

var gradientStop = new draw.GradientStop({
    offset: 0.3, // 30% from the start
    color: "#0066cc"
});

console.log(gradientStop.options.offset); // 0.3
</script>
Not finding the help you need?
Contact Support