mirror of
https://ark.sudovanilla.org/Korbs/Pandora.git
synced 2024-12-23 03:23:52 +00:00
Update Image component
This commit is contained in:
parent
b931de200a
commit
593180a002
|
@ -18,12 +18,8 @@ const {
|
||||||
fit={Fit}
|
fit={Fit}
|
||||||
format={Format}
|
format={Format}
|
||||||
quality={Quality}
|
quality={Quality}
|
||||||
onload="this.style.opacity = '1'"
|
onload="this.style.transition = '1s opacity, 1s box-shadow'; this.style.opacity = '1'"
|
||||||
inferSize
|
inferSize
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<style>
|
<style>img {opacity: 0}</style>
|
||||||
img {
|
|
||||||
opacity: 0; /* Fade in when it's loaded, see "onload" in component */
|
|
||||||
}
|
|
||||||
</style>
|
|
Loading…
Reference in a new issue