scale

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

scale 属性は、<feDisplacementMap> フィルタープリミティブで使用する変倍率を定義します。この量は <filter> 要素の primitiveUnits 属性で設定された座標系で表現されます。

この属性は次の SVG 要素で使用できます。

html
<svg viewBox="0 0 480 220" xmlns="http://www.w3.org/2000/svg">
  <filter id="displacementFilter" x="-20%" y="-20%" width="140%" height="140%">
    <feTurbulence
      type="turbulence"
      baseFrequency="0.05"
      numOctaves="2"
      result="turbulence" />
    <feDisplacementMap in2="turbulence" in="SourceGraphic" scale="5" />
  </filter>
  <filter id="displacementFilter2" x="-20%" y="-20%" width="140%" height="140%">
    <feTurbulence
      type="turbulence"
      baseFrequency="0.05"
      numOctaves="2"
      result="turbulence" />
    <feDisplacementMap in2="turbulence" in="SourceGraphic" scale="50" />
  </filter>

  <circle cx="100" cy="100" r="80" style="filter: url(#displacementFilter);""/>
  <circle cx="100" cy="100" r="80" style="filter: url(#displacementFilter2);
  transform: translateX(240px);""/>
</svg>

使用方法のメモ

<number>
既定値 None
アニメーション
<number>

この値は距離に関する変倍率を定義します。

この属性の値が 0 の場合は、元画像に対して影響しません。

仕様書

Specification
Filter Effects Module Level 1
# element-attrdef-fedisplacementmap-scale

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
scale

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support