elevation
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.
elevation
특성은 XY 평면에서 Z축으로 향하는 광원의 방향을 각도 단위인 도 단위로 특정합니다. 양수인 Z축은 콘텐츠를 보는 사람에게 향해 있습니다.
이 특성은 아래 SVG 요소와 함께 사용할 수 있습니다.
예제
html
<svg viewBox="0 0 440 200" xmlns="http://www.w3.org/2000/svg">
<filter id="distantLight1">
<feDiffuseLighting>
<feDistantLight elevation="0" />
</feDiffuseLighting>
</filter>
<filter id="distantLight2">
<feDiffuseLighting>
<feDistantLight elevation="45" />
</feDiffuseLighting>
</filter>
<circle cx="100" cy="100" r="80" style="filter: url(#distantLight1);" />
<circle
cx="100"
cy="100"
r="80"
style="filter: url(#distantLight2); transform: translateX(240px);" />
</svg>
사용 일람
Value | <number> |
---|---|
기본 값 | 0 |
애니메이션 가능 여부 | Yes |
명세서
Specification |
---|
Filter Effects Module Level 1 # element-attrdef-fedistantlight-elevation |
브라우저 호환성
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
elevation |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.