You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(gatsby-image): don't fadein image when already loaded "browser-cache" (#12468)
Placeholder transition CSS continues to work as normal, only when the image exists in the browser cache are the transition styles removed. This is mainly to address/reduce the undesirable transition for transparent images as #12254 describes.
<picture><source type='image/webp' srcset="some srcSetWebp" /><img width="100" height="100" srcset="some srcSet" src="test_image.jpg" alt="Alt text for the image" title="Title for the image" style="position:absolute;top:0;left:0;transition:opacity 0.5s;transition-delay:0.5s;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center"/></picture>
38
+
<picture><source type='image/webp' srcset="some srcSetWebp" /><img width="100" height="100" srcset="some srcSet" src="test_image.jpg" alt="Alt text for the image" title="Title for the image" style="position:absolute;top:0;left:0;opacity:1;width:100%;height:100%;object-fit:cover;object-position:center"/></picture>
39
39
</noscript>
40
40
</div>
41
41
</div>
42
42
`;
43
43
44
-
exports[`<Img /> should render fluid images 1`] =`
44
+
exports[`<Image /> should render fluid images 1`] =`
0 commit comments