Using gatsby-remark-images & gatsby-remark-images-contentful together makes images fade out (opacity 0)
See original GitHub issueDescription
When both remark transforms are used together inside of gatsby-transformer-remark
the contentful markdown images fade out to opacity 0.
Steps to reproduce
If I don’t include the gatsby-remark-images
plugin the contentful blog images work as expected, it only happens if I have both plugins defined.
gatsby-config.js
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-images',
options: {
maxWidth: 800,
backgroundColor: 'var(--color-background)',
},
},
{
resolve: 'gatsby-remark-images-contentful',
options: {
maxWidth: 800,
backgroundColor: 'var(--color-background)',
},
},
],
},
}
Expected result
Images from contentful markdown should not fade out.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (5 by maintainers)
Top Results From Across the Web
CSS transition fade out using opacity is not working
I am trying to have a div where on hover the image fades out (so you can only see the gray background behind)...
Read more >Quickly Change Transparency and Fade In or Fade Out Layer ...
This tutorial is on how to quickly change the transparency (or opacity ) and do a fade in or fade out of a...
Read more >Fade an Image to Transparent in Photoshop - YouTube
Learn how to fade an image to transparent in Photoshop with a gradient applied to a mask. 0 :00 - Introduction0:49 - Drawing...
Read more >How to Add a CSS Fade-in Transition Animation to Text ...
example of fade in image transition using css opacity. Here's how to make this effect happen: 1. In your HTML, create a div...
Read more >How to Change a CSS Background Image's Opacity
Explore two approaches to change the opacity of an image in the ... By changing this value closer to 0 , the element...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi!
I’m closing this as a stale issue as in the meantime Gatsby 4 and related packages were released. You can check our Framework Version Support Page to see which versions currently receive active support. If this is a feature request, please create a discussion as we moved feature requests from issues to GitHub Discussions.
Please try the mentioned issue on the latest version (using the
next
tag) and if you still see this problem, open a new bug report. It must include a minimal reproduction.Thanks!
I would love to help with this issue but there’s something I don’t understand yet. Why would one want to use both
gatsby-remark-images
andgatsby-remark-images-contentful
in conjunction? I’m asking this because I encountered issue #16516 also when usinggatsby-remark-images-contentful
. PR #17154 fixed this but only forgatsty-remark-images
. Could fixing this issue forgatsby-remark-images-contentful
prevent one from having to use both plugins in conjunction? Or are there other reasons one might do that?