Last active
March 2, 2019 16:55
-
-
Save ericwbailey/7138149 to your computer and use it in GitHub Desktop.
Mobify.js responsive <picture> example with accessible descriptive text. #comment #smashing
This file contains 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
<picture data-src="http://cdn.mobify.com/mobifyjs/examples/assets/images/responsive-obama-mobile.jpg"> | |
<source src="//ir0.mobify.com/webp/400/http://cdn.mobify.com/mobifyjs/examples/assets/images/responsive-obama-mobile.jpg"> | |
<source src="//ir0.mobify.com/webp/400/http://cdn.mobify.com/mobifyjs/examples/assets/images/responsive-obama.jpg" media="(min-width: 512px)"> | |
<source src="//ir0.mobify.com/webp/512/http://cdn.mobify.com/mobifyjs/examples/assets/images/responsive-obama.jpg" media="(min-width: 1024px)" data-width="512"> | |
<source src="//ir0.mobify.com/webp/512/http://cdn.mobify.com/mobifyjs/examples/assets/images/responsive-obama.jpg" media="(min-width: 2048px)" data-width="1024"> | |
<img src="responsive-obama.jpg"> | |
<p>A photograph of United States President Barack Obama shaking hands.</p> | |
</picture> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment