Skip to content

Commit

Permalink
fix(picture): show image after load
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Nov 20, 2020
1 parent d43daf2 commit 709d8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/nuxt-picture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export default {
objectFit: 'cover',
objectPosition: 'center center',
transition: 'opacity 800ms ease 0ms',
opacity: this.lazyState === LazyState.IDLE ? 0 : 1
opacity: this.lazyState === LazyState.LOADED ? 1 : 0
},
attrs: {
src: this.lazyState === LazyState.IDLE ? undefined : this.generatedSrc,
Expand Down

0 comments on commit 709d8e7

Please sign in to comment.