Update Image component

This commit is contained in:
Korbs 2024-12-04 14:00:07 -05:00
parent b931de200a
commit 593180a002

View file

@ -18,12 +18,8 @@ const {
fit={Fit}
format={Format}
quality={Quality}
onload="this.style.opacity = '1'"
onload="this.style.transition = '1s opacity, 1s box-shadow'; this.style.opacity = '1'"
inferSize
/>
<style>
img {
opacity: 0; /* Fade in when it's loaded, see "onload" in component */
}
</style>
<style>img {opacity: 0}</style>