Resize svg element
This commit is contained in:
@ -3,15 +3,6 @@ title: Gallery
|
||||
type: page
|
||||
---
|
||||
|
||||
<svg>
|
||||
<filter id="pixelate" x="0" y="0">
|
||||
<feFlood x="4" y="4" height="2" width="2"/>
|
||||
<feComposite width="10" height="10"/>
|
||||
<feTile result="a"/>
|
||||
<feComposite in="SourceGraphic" in2="a" operator="in"/>
|
||||
<feMorphology operator="dilate" radius="5"/>
|
||||
</filter>
|
||||
</svg>
|
||||
|
||||
<style>
|
||||
img {
|
||||
@ -83,3 +74,12 @@ document.querySelectorAll('a').forEach(link => {
|
||||
}
|
||||
});
|
||||
</script>
|
||||
<svg width="0" height="0">
|
||||
<filter id="pixelate" x="0" y="0">
|
||||
<feFlood x="4" y="4" height="2" width="2"/>
|
||||
<feComposite width="10" height="10"/>
|
||||
<feTile result="a"/>
|
||||
<feComposite in="SourceGraphic" in2="a" operator="in"/>
|
||||
<feMorphology operator="dilate" radius="5"/>
|
||||
</filter>
|
||||
</svg>
|
||||
|
||||
Reference in New Issue
Block a user