Hacker News new | comments | show | ask | jobs | submit login

You can create an SVG where certain elements are hidden when rendered below a particular size using embedded JavaScript. It would be a pain in the ass because it would have to be done by hand, but you could do it. It's a problem with the tools we use to create SVGs, not the capabilities of the format.



Hmm, could it be done via CSS?


Now that you mention it, you can do it with CSS media queries, like so (but with shape and path elements rather than image elements):

https://github.com/estelle/clowncar




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: