Update Image component
This commit is contained in:
parent
b931de200a
commit
593180a002
1 changed files with 2 additions and 6 deletions
|
@ -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