Update readme.md

This commit is contained in:
Emmanuel Garcia 2013-05-04 12:19:44 -03:00
parent cf64a2919d
commit 08c1f6599a

View File

@ -1,9 +1,10 @@
turn.js 4th release
=========
Get the new turn.js on [turnjs.com](http://www.turnjs.com/) ![Bilby Stampede](http://turnjs.com/pics/small-turnjs-letters.png)
### What's new? **Get the turn.js 4th release on [turnjs.com](http://www.turnjs.com/)**
### What's new in turn.js 4th release?
- Added option `autoCenter` - Added option `autoCenter`
@ -81,7 +82,7 @@ Turn.js is a plugin for jQuery that adds a beautiful transition similar to real
#### Usage #### Usage
**CSS code:** **CSS code:**
<pre> ```css
#magazine{ #magazine{
width: 800px; width: 800px;
height: 400px; height: 400px;
@ -89,21 +90,21 @@ Turn.js is a plugin for jQuery that adds a beautiful transition similar to real
#magazine .turn-page{ #magazine .turn-page{
background-color:#ccc; background-color:#ccc;
} }
</pre> ```
**HTML code:** **HTML code:**
<pre> ```html
&lt;div id=<span class="string">'magazine'</span>&gt; <div id="magazine">
&lt;div&gt; <span class="text">Page 1</span> &lt;/div&gt; <div><span class="text">Page 1</span></div>
&lt;div&gt; <span class="text">Page 2</span> &lt;/div&gt; <div><span class="text">Page 2</span></div>
&lt;div&gt; <span class="text">Page 3</span> &lt;/div&gt; <div><span class="text">Page 3</span></div>
&lt;/div&gt; </div>
</pre> ```
**JavaScript code:** **JavaScript code:**
<pre> ```javascript
$('#magazine').turn({gradients: true, acceleration: true}); $('#magazine').turn({gradients: true, acceleration: true});
</pre> ```
#### Requirements #### Requirements