When I try to embed this css component in the html page of my website, it only appears when its size is too large. I want to resize it and make it smaller overall, but instead, it crops. I'm not sure if I am embedding this thing the wrong way or if there is something else going on.
I attempted to make the parent div relative and the div with the component absolute, and tried resizing, but failed to do so.
Here is the HTML code:
<div class="portrait-container">
<div class="portrait"></div>
</div>
And the CSS code:
.portrait {
--splatted: "M232.5 256C225 251 209.5 262.5 224 281.5C232.736 292.948 238.561 297.756 251 290.5C257 287 256.114 271.924 250 264.5C243.886 257.076 240 261 232.5 256ZM147 92.5C118.738 94.6708 118 17 93 44C68 71 123.543 76.5 108 101.5C90.5 115 70.81 98.3664 64 115C56.7766 132.643 91.1967 136.948 90.5 156C89.4406 184.974 19.1766 161.499 24.5 190C29.9178 219.006 78.6461 172.635 100 193C130.207 221.808 1 248.5 58.5 291.5C94.5576 318.465 114.991 206.551 140.5 211...
.portrait:hover {
--clip: var(--splattier);
}
.portrait:active {
--clip: var(--splatted);
}
You can find more information from where the code was grabbed from here.