Option: direction: Difference between revisions

From Turn.js Documentation
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Specifies the directionality of pages--left-to-right (DIR=ltr, the default) or right-to-left (DIR=rtl).  
Specifies the directionality of the flipbook left-to-right (DIR=ltr, the default) or right-to-left (DIR=rtl).  


{| class="wikitable"
{| class="wikitable"
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>
Line 30: Line 30:
<pre class="css">
<pre class="css">
#flipbook {
#flipbook {
direction:rtl;
  direction:rtl;
}
}
</pre>
</pre>

Latest revision as of 06:26, 26 November 2012

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

Type Default value
String ltr

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

<yambe:breadcrumb>Turn Options</yambe:breadcrumb>