files/en-us/web/api/svgfegaussianblurelement/in1/index.md
{{APIRef("SVG")}}
The in1 read-only property of the {{domxref("SVGFEGaussianBlurElement")}} interface reflects the {{SVGAttr("in")}} attribute of the given {{SVGElement("feGaussianBlur")}} element.
An {{domxref("SVGAnimatedString")}} object.
In this example, two {{SVGElement("feGaussianBlur")}} elements are defined in a filter, each with a different in attribute.
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<defs>
<filter id="gaussian-blur-filter">
<!-- Gaussian blur applied to the SourceGraphic -->
<feGaussianBlur
in="SourceGraphic"
stdDeviation="5"
result="blurred-source" />
<!-- Gaussian blur applied to the BackgroundImage -->
<feGaussianBlur
in="BackgroundImage"
stdDeviation="10"
result="blurred-background" />
</filter>
</defs>
<!-- Rectangle with SourceGraphic blur effect -->
<rect
x="20"
y="20"
width="100"
height="100"
fill="rebeccapurple"
filter="url(#gaussian-blur-filter)" />
<!-- Circle with BackgroundImage blur effect -->
<circle
cx="150"
cy="100"
r="50"
fill="hotpink"
filter="url(#gaussian-blur-filter)" />
</svg>
We can access the in attribute:
// Get all feGaussianBlur elements
const gaussianBlurs = document.querySelectorAll("feGaussianBlur");
// Access the 'in' attribute values
console.log(gaussianBlurs[0].in1.baseVal); // Output: "SourceGraphic"
console.log(gaussianBlurs[1].in1.baseVal); // Output: "BackgroundImage"
{{Specifications}}
{{Compat}}