Main Page: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
Line 94: Line 94:
! scope="col" width="225" | Methods
! scope="col" width="225" | Methods
! scope="col" width="225" | Events
! scope="col" width="225" | Events
! scope="col" width="225" | CSS Classes


|-
|-
Line 108: Line 107:
| valign="top"  |
| valign="top"  |


* [[Method: addPage|addPage]]
* [[Method: addPage|zoomIn]]
* [[Method: center|center]]
* [[Method: center|zoomOut]]
* [[Method: destroy|destroy]]
 
* [[Method: display|display]]
* [[Method: disable|disable]]
* [[Method: hasPage|hasPage]]
* [[Method: next|next]]
* [[Method: is|is]]
* [[Method: page|page]]
* [[Method: pages|pages]]
* [[Method: peel|peel]]
* [[Method: previous|previous]]
* [[Method: range|range]]
* [[Method: removePage|removePage]]
* [[Method: resize|resize]]
* [[Method: size|size]]
* [[Method: stop|stop]]
* [[Method: zoom|zoom]]


| valign="top"  |
| valign="top"  |


* [[Event: end|end]]
* [[Event: end|doubleTap]]
* [[Event: first|first]]
* [[Event: first|resize]]
* [[Event: last|last]]
* [[Event: last|zoomIn]]
* [[Event: missing|missing]]
* [[Event: missing|zoomOut]]
* [[Event: start|start]]
* [[Event: start|swipeLeft]]
* [[Event: turning|turning]]
* [[Event: turning|swipeOut]]
* [[Event: turned|turned]]
* [[Event: zooming|zooming]]
 
| valign="top" |
* [[Class: .even|.even]]
* [[Class: .fixed|.fixed]]
* [[Class: .hard|.hard]]
* [[Class: .odd|.odd]]
* [[Class: .own-size|.own-size]]
* [[Class: .page|.page]]
* [[Class: .p|.p[0-9]+]]
* [[Class: .shadow|.shadow]]
* [[.Class: .sheet|sheet]]


|}
|}


==scissors.js==
==scissors.js==

Revision as of 22:33, 4 July 2012

The first release of turn.js introduced a pretty simple way for adding new pages. In fact, the only thing you had to do was to add as many elements as pages you needed for your book or magazine. Quickly, this scheme brought up a problem in cases where the book contained a large amount of pages.

$('selector').turn();


turn.js

Options Properties Methods Events CSS Classes



zoom.js

Options Properties Methods Events



scissors.js