Skip to content

Instantly share code, notes, and snippets.

@maxhoffmann
Created May 8, 2012 12:26
Show Gist options
  • Select an option

  • Save maxhoffmann/2634562 to your computer and use it in GitHub Desktop.

Select an option

Save maxhoffmann/2634562 to your computer and use it in GitHub Desktop.
Flipboard Page 3D
/**
* Flipboard Page 3D
*/
body {
background: #eee;
}
.container {
position: relative;
height: 480px;
width: 320px;
background: white;
}
.page {
top: 240px;
position: absolute;
width: 100%;
height: 50%;
}
.page > div {
display: block;
height: 100%;
width: 100%;
position: absolute;
-webkit-transform-style: preserve-3d;
}
<div class="container">
<div class="page">
<div class="front" style="-webkit-transform: rotateX(10deg)">Seite 1 Front</div>
<div class="back" style="-webkit-transform: rotateX(-180deg)">Seite 1 Back</div>
</div>
</div>
{"view":"split-vertical","fontsize":"90","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment