Class: .p

From Turn.js Documentation
Revision as of 06:45, 26 November 2012 by Emmanuel (talk | contribs)
Jump to navigation Jump to search

This class describes a particular page. For instance, .p1 refers to the first page, .p2 to the second page and so on. You can change the number of a page no matter its order in the HTML:

<div id="flipbook">
 <div class="p100">Page 100</div>
  <div class="p1">Page 1</div>
</div>

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

You can also use it as a jQuery selector:

$("#flipbook .p100").doSomething();