Skip to content

Instantly share code, notes, and snippets.

Created May 27, 2013 13:27
Show Gist options
  • Save anonymous/5657045 to your computer and use it in GitHub Desktop.
Save anonymous/5657045 to your computer and use it in GitHub Desktop.
Untitled
.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%;
}
<div class="cont">
<div class="p1">content</div>
<div class="p2">content2</div>
</div>
// alert('Hello world!');
{"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