-
-
Save kizu/5657074 to your computer and use it in GitHub Desktop.
Revisions
-
kizu revised this gist
May 27, 2013 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -24,14 +24,11 @@ width: 100%; position: relative; transition: all 1s; background: blue; z-index: 9; padding-bottom: 999px; margin-bottom: -999px; } .cont:hover .p2 { transform: translate(-100%,0); } -
kizu revised this gist
May 27, 2013 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -28,6 +28,8 @@ background: blue; z-index: 9; margin-left: 0; padding-bottom: 999px; margin-bottom: -999px; } .cont:hover .p2 { left: -100%; -
kizu revised this gist
May 27, 2013 . 3 changed files with 18 additions and 8 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -3,23 +3,33 @@ overflow: hidden; position: relative; white-space: nowrap; } .p1, .p2 { padding: 20px; vertical-align: top; } .p1 { background: red; display: inline-block; width: 100%; white-space: normal; } .p2 { white-space: normal; display: inline-block; width: 100%; position: relative; transition: all 1s; left: 0; background: blue; z-index: 9; margin-left: 0; } .cont:hover .p2 { left: -100%; margin-left: -40px; } 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ <div class="cont"> <div class="p1">content<br/>asdf<br/>asdfsfd</div ><div class="p2">content2</div> </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 charactersOriginal file line number Diff line number Diff line change @@ -1 +1 @@ {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"} -
There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ .cont { width: 100%; overflow: hidden; position: relative; height: 60px; } .p1, .p2 { padding: 20px; } .p1 { background: red; position: absolute; width: 100%; } .p2 { width: 100%; background: blue; position: absolute; transition: all 1s; left: 100%; } 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ <div class="cont"> <div class="p1">content</div> <div class="p2">content2</div> </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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ // 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ {"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}