-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add media query support to Image #232
Comments
Related: gatsbyjs/gatsby#13164 |
We just published gatsbyjs/gatsby#13164
You should be able to add an array of fluid/fixed objects to gatsby image with a media property. To see it in action you can visit https://github.com/gatsbyjs/gatsby/blob/c9ea948f068c3ba0be11adae4570900445be0922/examples/using-gatsby-image/src/components/floating-image.js#L43-L53 |
Sweet, thanks @wardpeet! We'll definitely be looking at that API for inspiration. |
We decided not do to this in favor of letting the consumer handle it. |
This allows for different aspect ratios and/or images at different breakpoints. Couple use cases:
Possible API
Note that in #3 the HTML output must go from largest to smallest media query.
The text was updated successfully, but these errors were encountered: