Menu Home

stop

osbo.com | SVG | Elements | stop

The stop SVG element specifies the vector of colors to use in a gradient.

Syntax

Attributes

offset

Specifies where the gradient stop is placed.

Value
<number> | <percentage>
Default
0

stop-color

Specifies the color for the gradient stop.

Value
currentColor | <color> <icccolor>
Default
black

stop-opacity

Specifies the opacity for the gradient stop.

Value
<alpha-value>
Default
1

Examples

offset

<number>

<percentage>

stop-color

<color>

currentColor

<icccolor>

stop-opacity

<alpha-value>

Internal

linearGradient

radialGradient

External

World Wide Web Consortium (W3C)