Path: blob/main/files/en-us/web/svg/element/feoffset/index.md
6546 views
------{{SVGRef}}
The <feOffset> SVG filter primitive allows to offset the input image. The input image as a whole is offset by the values specified in the {{SVGAttr("dx")}} and {{SVGAttr("dy")}} attributes.
Usage context
{{svginfo}}
Attributes
Global attributes
{{SVGAttr("class")}}
{{SVGAttr("style")}}
Specific attributes
{{SVGAttr("in")}}
{{SVGAttr("dx")}}
{{SVGAttr("dy")}}
DOM Interface
This element implements the {{domxref("SVGFEOffsetElement")}} interface.
Example
SVG
Result
{{EmbedLiveSample("Example", 200, 200)}}
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
{{SVGElement("filter")}}
{{SVGElement("animate")}}
{{SVGElement("set")}}
{{SVGElement("feBlend")}}
{{SVGElement("feColorMatrix")}}
{{SVGElement("feComponentTransfer")}}
{{SVGElement("feComposite")}}
{{SVGElement("feConvolveMatrix")}}
{{SVGElement("feDiffuseLighting")}}
{{SVGElement("feDisplacementMap")}}
{{SVGElement("feFlood")}}
{{SVGElement("feGaussianBlur")}}
{{SVGElement("feImage")}}
{{SVGElement("feMerge")}}
{{SVGElement("feMorphology")}}
{{SVGElement("feSpecularLighting")}}
{{SVGElement("feTile")}}
{{SVGElement("feTurbulence")}}