Skip to content
This repository has been archived by the owner on Nov 26, 2021. It is now read-only.

Commit

Permalink
Maintain placeholder image aspect ratio and center. (#136)
Browse files Browse the repository at this point in the history
* Maintain placeholder image aspect ratio and center.

* Move "object-fit" to image selector only.
  • Loading branch information
notlee authored Apr 5, 2019
1 parent 5055426 commit ceecd0e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scss/_placeholder.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
.o-video__placeholder-image {
will-change: opacity;
transition: opacity 0.25s;
object-fit: cover;

// saves messing with z-indexes!
:hover > & {
Expand Down

0 comments on commit ceecd0e

Please sign in to comment.