-
-
Save boblemarin/4204277 to your computer and use it in GitHub Desktop.
Menu duo séparation chose
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
/** | |
* Menu duo séparation chose | |
*/ | |
body { | |
background: white; | |
padding: 0; | |
margin: 0; | |
} | |
.sep { | |
z-index: -1; | |
background: black; | |
position: absolute; | |
right: 0; | |
top: 0; | |
bottom: 0; | |
left: 50%; | |
-webkit-transition: all .5s ease-in-out; | |
} | |
.parent { | |
width: 100px; | |
height: 200px; | |
position: absolute; | |
top: 50px; | |
background: red; | |
cursor: pointer; | |
} | |
.maman { | |
left: 100px; | |
} | |
.papa { | |
right: 100px; | |
} | |
.maman:hover ~ .sep { | |
left: 95%; | |
} | |
.papa:hover ~ .sep { | |
left: 5%; | |
} |
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
<div class="parent maman"></div> | |
<div class="parent papa"></div> | |
<div class="sep"></div> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment