2 ms·
A friend of mine is an absolute wizard and has been building essentially “responsive images” as SVGs with JS inside. They adapt to their size programmatically.
by donatj 2y ago
A friend of mine is an absolute wizard and has been building essentially “responsive images” as SVGs with JS inside. They adapt to their size programmatically. It’s… interesting.
The fact that SVGs can even have JS embedded feels both untapped and kind of dangerous.
- johnny99k 2y agoThis has been known in the security community for quite some time.
- soperj 2y agoSVGs are responsive out of the box? I'm confused about what the Javascript would be doing to help that situation within the svg.
- asynchronous 2y agoI think they’re talking about dynamically actually changing the image itself, not just resizing
- alemanek 2y agoThat sounds super interesting. Does your friend have a GitHub or site that shows what they’re doing on that front. If so could you post link. This is super far out of my wheelhouse technically as a backend engineer but it sounds really cool.
- deleted 2y ago[deleted]