Last active
March 13, 2019 16:36
-
-
Save Alfrex92/3a5569ae02e46e41dbda4410d988d793 to your computer and use it in GitHub Desktop.
Responsive images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.wrapper { | |
position: relative; | |
overflow: hidden; | |
padding-bottom: $mainRatio; | |
background-size: cover; | |
img { | |
position: absolute; | |
left: -10000%; | |
right: -10000%; | |
top: -10000%; | |
bottom: -10000%; | |
margin: auto auto; | |
min-width: 1000%; | |
min-height: 1000%; | |
transform: scale(0.1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment