Skip to content

Commit

Permalink
🐛 💄 Fix wrapping div not filling parent container
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoLegends committed Jun 2, 2018
1 parent b7dfcef commit 7028c2a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,19 @@ template.innerHTML = `
position: relative;
}
div, img {
height: 100%;
width: 100%;
}
div {
position: absolute;
will-change: transform;
}
img {
filter: var(--img-filter);
height: 100%;
object-fit: cover;
width: 100%;
}
@keyframes fade-in {
Expand Down

0 comments on commit 7028c2a

Please sign in to comment.