Resize svg element

This commit is contained in:
Madison Scott-Clary
2022-12-17 13:28:02 -08:00
parent b71c0b8c8e
commit da1f13239d

View File

@ -3,15 +3,6 @@ title: Gallery
type: page 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> <style>
img { img {
@ -83,3 +74,12 @@ document.querySelectorAll('a').forEach(link => {
} }
}); });
</script> </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>