robinwebdev
2/3/2018 - 6:52 PM

Interchange inside cover

Use of 'srcset' attribute with a 'cover-like' feature.

<div class="cover-parent">
	<picture>
		<source media="(min-width: 769px)" srcset="media/images/accueil-photo-desktop.jpg" width="2048" height="964">
		<img class="cover" src="media/images/accueil-photo-mobile.jpg" width="800" height="377" alt="Illustration">
	</picture>
</div>