Export (0) Print
Expand All
a
b
c
cx
cy
d
dx
dy
e
f
fx
fy
id
in1
in2
k1
k2
k3
k4
r1
r2
x
x1
x2
y
y1
y2
z
Expand Minimize

offset attribute | offset property

Gets or sets a value that indicates where the gradient stop is placed within the gradient.

Scalable Vector Graphics: Gradients and Patterns, Section 13.4.4Internet Explorer 9

Syntax

HTML
<element offset="p" ... >
JavaScript
p = object.offset

Property values

Type: Object

The location of the gradient stop.

Standards information

Remarks

The offset is a number (typically ranging from 0 through 1) that indicates where the gradient stop is placed. For linear gradients, the offset represents a location along the gradient vector. For radial gradients, the offset represents a percentage distance from the (fx,fy) point to the edge of the largest (that is, outermost) circle.

See also

SVGComponentTransferFunctionElement
SVGStopElement

 

 

Show:
© 2014 Microsoft