Last active
October 25, 2019 13:59
-
-
Save theresaweb/8ed5a5fccda77b76ed995fa08c8506e1 to your computer and use it in GitHub Desktop.
Maintain flexgrid on hover
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
<div class="wrap"> | |
<div class="item"><img src="https://via.placeholder.com/150" /></div> | |
<div class="item"><img src="https://via.placeholder.com/150" /><</div> | |
<div class="item"><img src="https://via.placeholder.com/150" /><</div> | |
</div> |
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
.wrap { | |
display: flex; | |
max-width: 1140px; | |
} | |
.home-middle .widget_media_image { | |
max-width: 400px; | |
width: 300px; | |
overflow: hidden; | |
transition: all .5s ease-in-out; | |
} | |
.home-middle .widget_media_image:hover { | |
width: 400px; | |
max-width: 400px; | |
margin-left: -25px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment