in2

The in2 attribute identifies the second input for the given filter primitive. It works exactly like the in attribute.

You can use this attribute with the following SVG elements:

feBlend

For <feBlend>, in2 defines the second input image to the blending operation.

ValueSourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference>
Default valueSourceGraphic for first filter primitive, otherwise result of previous filter primitive
AnimatableYes

feComposite

For <feComposite>, in2 defines the second input image to the compositing operation.

ValueSourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference>
Default valueSourceGraphic for first filter primitive, otherwise result of previous filter primitive
AnimatableYes

feDisplacementMap

For <feDisplacementMap>, in2 defines the second input image, which is used to displace the pixels in the image defined in the in attribute.

ValueSourceGraphic | SourceAlpha | BackgroundImage | BackgroundAlpha | FillPaint | StrokePaint | <filter-primitive-reference>
Default valueSourceGraphic for first filter primitive, otherwise result of previous filter primitive
AnimatableYes

Specifications