Click anywhere to toggle.
$( document ).click(function() { $( "#toggle" ).toggle( "explode" );}); (#)Api Explode Effect
# jQuery UI API - Explode Effect
## Category
(#)
## Usage
**Description:** The Explode Effect hides or shows an element by splitting it into pieces.
explode
| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| pieces | Integer | The number of pieces to split the element into. Should be a square number; any other value is rounded to the nearest square number. | 9 |
## Example
Toggle a div using the Explode Effect.
Explode Effect Demo #toggle { width: 100px; height: 100px; background: #ccc; }
YouTip