Views
Actions

Option: direction

From Turn.js Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "Specifies the directionality of pages--left-to-right (DIR=ltr, the default) or right-to-left (DIR=rtl). {| class="wikitable" |- ! scope="row" | Type ! scope="row" | Default...")
 
(Examples)
Line 22: Line 22:
 
<pre class="xml">
 
<pre class="xml">
 
<div id="flipbook" dir="rtl">
 
<div id="flipbook" dir="rtl">
// Pages
+
<!--Pages-->
 
</div>
 
</div>
 
</pre>
 
</pre>

Revision as of 21:17, 15 July 2012

Specifies the directionality of pages--left-to-right (DIR=ltr, the default) or right-to-left (DIR=rtl).

Type Default value
String
$("#flipbook").attr("dir") || $("#flipbook").css("direction")

Examples

1. Specifying the direction as an option

$("#flipbook").turn({direction: "rtl"});

2. Using the HTML dir attribute.

<div id="flipbook" dir="rtl">
	<!--Pages-->
</div>

3. Using the CSS direction rule

#flipbook {
	direction:rtl;
}

See also

Main Page > API > Turn Options > Option: direction