Last active
October 23, 2024 14:14
-
-
Save mokhov/51cc40bc7be469b1f2fffc62079983ea to your computer and use it in GitHub Desktop.
Untitled
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
.wrapper { | |
display: grid; | |
background: gray; | |
display: grid; | |
width: 200%; | |
grid-template-columns: 1fr 1fr; | |
} | |
input:checked + .wrapper { | |
} | |
.content { | |
background: red; | |
opacity: 0; | |
transition: opacity 1s ease; | |
} | |
input:checked + .wrapper .content { | |
grid-template-rows: 1fr; | |
/*position: static;*/ | |
width: auto; | |
opacity: 0; | |
transition: opacity 3s ease; | |
} | |
.content2 { | |
display: grid; | |
grid-template-rows: 1fr; | |
background: green; | |
transition: | |
grid-template-rows 1s ease; | |
} | |
input:checked + .wrapper .content2 { | |
grid-template-rows: 0fr; | |
transition: | |
grid-template-rows 1s ease 1s; /*height: 0;*/ | |
} | |
.content2-inner { | |
margin-left: -100%; | |
overflow: hidden; | |
opacity: 1; | |
position: relative; | |
transition: opacity 1s ease 1s; | |
} | |
input:checked + .wrapper .content2 .content2-inner { | |
opacity: 0; | |
transition: opacity 1s ease; | |
} |
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
<input type="checkbox" /> | |
<section class="wrapper"> | |
<div class="content"> | |
<div class="content-inner">different</div> | |
</div> | |
<div class="content2"> | |
<div class="content2-inner"> | |
content2 lmao aue<br> | |
<br> | |
content | |
<br> | |
content | |
<br> | |
content | |
<br> | |
content | |
<br> | |
content <br> | |
</div> | |
</div> | |
</section> |
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