Skip to content

Commit

Permalink
fix: disable blur filter on custom placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Nov 16, 2020
1 parent eb82b23 commit 3f277a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/nuxt-picture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ export default {
height: '100%',
objectFit: 'cover',
objectPosition: 'center center',
filter: 'blur(10px)',
// disable blur filter on custom placeholder
filter: typeof this.placeholder === 'string' ? undefined : 'blur(10px)',
transition: 'opacity 1s',
opacity: this.lazyState === LazyState.LOADED ? 0 : 1
},
Expand Down

0 comments on commit 3f277a3

Please sign in to comment.