YouTip LogoYouTip

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; }

Click anywhere to toggle.

$( document ).click(function() { $( "#toggle" ).toggle( "fold" );}); (#)
← Api HideApi Fade Effect β†’