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 dx and dy attributes.

Usage context

CategoriesFilter primitive element
Permitted contentAny number of the following elements, in any order:
<animate>, <set>


Global attributes

Specific attributes

DOM Interface

This element implements the SVGFEOffsetElement interface.



<svg width="200" height="200" xmlns="">
    <filter id="offset" width="180" height="180">
      <feOffset in="SourceGraphic" dx="60" dy="60" />

  <rect x="0" y="0" width="100" height="100" stroke="black" fill="green"/>
  <rect x="0" y="0" width="100" height="100" stroke="black" fill="green" filter="url(#offset)"/>



Specification Status Comment
Filter Effects Module Level 1
The definition of '<feOffset>' in that specification.
Working Draft No change
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of '<feOffset>' in that specification.
Recommendation Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes Yes4 Yes9 ?
dx Yes Yes4 Yes9 ?
dy Yes Yes4 Yes9 ?
in Yes Yes4 Yes9 ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? Yes Yes Yes ? ? ?
dx ? Yes Yes Yes ? ? ?
dy ? Yes Yes Yes ? ? ?
in ? Yes Yes Yes ? ? ?

See also

Document Tags and Contributors

Contributors to this page: fscholz, Sebastianz, abbycar, iwarui, kscarfone, Jeremie, Manuel_Strehl
Last updated by: fscholz,