Click anywhere to toggle.
$( document ).click(function() { $( "#toggle" ).toggle( "fold" );}); (#)Api Fold Effect
# jQuery UI API β Fold Effect
## Category
(#)
## Usage
**Description:** The Fold Effect hides or shows an element by folding it.
fold
| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| size | Number or String | The size of the element being folded. | 15 |
| horizFirst | Boolean | Whether to fold horizontally first when folding. Remember, the order is reversed when showing. | false |
## Example
Use the Fold Effect to toggle a div.
Fold Effect Demo #toggle { width: 100px; height: 100px; background: #ccc; }
YouTip