Created
October 10, 2019 18:11
-
-
Save carlosvini/0063fa92954770802bcde15932cfe77d to your computer and use it in GitHub Desktop.
transition
This file contains hidden or 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
<style> | |
#bogus { | |
background: red; | |
width: 50px; | |
height: 30px; | |
transition: 500ms all; | |
position: absolute; | |
right: 0; | |
overflow: hidden; | |
display: flex; | |
} | |
#bogus .closed { | |
opacity: 0; | |
overflow: hidden; | |
white-space: nowrap; | |
transition: 500ms all; | |
flex-direction: row; | |
display: flex; | |
} | |
#bogus:hover { | |
width: 250px; | |
} | |
#bogus:hover .closed { | |
opacity: 1; | |
} | |
.icon { | |
background: green; | |
padding: 5px; | |
border-radius: 10px; | |
} | |
</style> | |
<div id="bogus"> | |
<div class="icon">teste</div> | |
<div class="closed"> | |
<div class="icon">teste</div> | |
<div class="icon">teste</div> | |
<div class="icon">teste</div> | |
<div class="icon">teste</div> | |
<div class="icon">teste</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment