et pas commenté
There have already been some explorations on responsive SVG images a while back, but when Joe Harrison posted a responsive icon concept on Dribbble and even a working version on a dedicated website, a few people thought this was so wrong they had to make their own version. I must admit I’m one of them… ;-)
(you need to open it on CodePen or resize you window to see the effect, as for following examples.)
My own attempt tries to really use SVG features, by using sub elements as progressively revealed building blocks, instead of full houses for every breakpoint. The purpose is to remove as much redundancy as possible, and add some semantic on the way.
There have been concerns in the Dribble comments that the original have too much variation for a single icon, that will affect memorability and recognition. I tend to agree and did only improve details without modifying the whole design of the icon at the larger size.
SVG is even inline in the HTML, so there is no additional request at all.
I made a little screencast for those who don’t have SVG support in their browser:
There are still some parts missing:
- maybe more detailed icon for huge sizes;
- a fallback for browsers lacking SVG support.