I hate this kind of code:
<source media="(min-width: 1024px)" srcset="opera-fullshot.webp" type="image/webp">
<source media="(min-width: 1024px)" srcset="opera-fullshot.jpg">
<source srcset="opera-closeup.webp" type="image/webp">
<img src="opera-closeup.jpg" alt="The Oslo Opera House">
Is it possible to have one url that automagically fits the image just like this I think:
Aspect ratio on mobile is portrait and for desktop landscape.
I hope this is possible.
Post is closed for comments.