mirror of
https://ark.sudovanilla.org/Korbs/Pandora.git
synced 2024-12-22 11:03:53 +00:00
Update Image component
This commit is contained in:
parent
b931de200a
commit
593180a002
|
@ -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>
|
Loading…
Reference in a new issue