blob: be056a47f20df6e1e9d3eaf689221a7e9954fd4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300">
<defs>
<filter id="shift">
<feOffset dx="50"/>
</filter>
<clipPath id="clip">
<rect x="100" y="50" width="100" height="100"/>
</clipPath>
</defs>
<rect x="100" y="50" width="100" height="100" fill="red"/>
<rect x="50" y="50" width="200" height="100" fill="green" filter="url(#shift)" clip-path="url(#clip)"/>
</svg>
|