Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Art Direction combined with variable resolution
<picture>
<source media="(max-width: 600px)"
srcset="cropped_art_direction_300.jpg 300w,
cropped_art_direction_600.jpg 600w"
sizes="300px">
<img src="art_direction.jpg" alt="An example of art direction"
srcset="art_direction_600.jpg 600w,
art_direction_1200 1200w"
sizes="600px">
</picture>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.