Last active
October 15, 2015 02:34
-
-
Save mike-engel/88ceb4c582ad951d52e0 to your computer and use it in GitHub Desktop.
Using responsive images with the cloud in a template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="portfolio-item-1"> | |
<img src="<%= responsiveImageString('v1444865801/forest.jpg', 1000, true) %>" | |
srcset="<%= responsiveImageString('v1444865801/forest.jpg', [320, 768, 1024, 5000]) %>" | |
sizes="(min-width: 1024px) 50vw, 100vw) | |
alt="Green forest scene"> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment