Class: .hard: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
 
Line 15: Line 15:
<pre class="css">
<pre class="css">
#flipbook .page-wrapper{
#flipbook .page-wrapper{
-webkit-perspective:2000px;
  -webkit-perspective:2000px;
-moz-perspective: 2000px;
  -moz-perspective: 2000px;
-ms-perspective: 2000px;
  -ms-perspective: 2000px;
perspective: 2000px;
  perspective: 2000px;
}
}
</pre>
</pre>

Latest revision as of 15:31, 6 August 2012

Sets a hard transition effect for a page. By setting all the pages as hard you will create the same effect as in Flipboard.

Example:

<div id="flipbook">
   <div class="hard">Page 1</div>
   <div class="hard">Page 2</div>
</div>

Adding depth

#flipbook .page-wrapper{
   -webkit-perspective:2000px;
   -moz-perspective: 2000px;
   -ms-perspective: 2000px;
   perspective: 2000px;
}

See Also

<yambe:breadcrumb>Turn CSS</yambe:breadcrumb>