Example Show
# jQuery UI Example - Show
Use a custom effect to show matched elements.
For more details on the `.show()` method, please see the API documentation [.show()](#).
## .show() Demo
Click the button to preview the effect.
jQuery UI Effects - .show() Demo .toggler { width: 500px; height: 200px; } #button { padding: .5em 1em; text-decoration: none; } #effect { width: 240px; height: 135px; padding: 0.4em; position: relative; } #effect h3 { margin: 0; padding: 0.4em; text-align: center; } $(function() { // Run the currently selected effect function runEffect() { // Get the effect type from the selected option var selectedEffect = $( "#effectTypes" ).val(); // Most effects don't need options passed by default var options = {}; // Some effects have required parameters if ( selectedEffect === "scale" ) { options = { percent: 100 }; } else if ( selectedEffect === "size" ) { options = { to: { width: 280, height: 185 } }; } // Run the effect $( "#effect" ).show( selectedEffect, options, 500, callback ); }; // Callback function function callback() { setTimeout(function() { $( "#effect:visible" ).removeAttr( "style" ).fadeOut(); }, 1000 ); }; // Set effect from select menu value $( "#button" ).click(function() { runEffect(); return false; }); $( "#effect" ).hide(); }); Blind Effect Bounce Effect Clip Effect Drop Effect Explode Effect Fold Effect Highlight Effect Puff Effect Pulsate Effect Scale Effect Shake Effect Size Effect Slide Effect Run Effect
(#)
[](#)[jQuery UI Example β Effect](#)
[jQuery UI Example β Hide](#)[](#)
[Volcengine Coding Plan supports mainstream large models like Doubao, GLM, DeepSeek, Kimi, MiniMax, officially supplied and reliable. Configuration Guide Β₯9.9/ month Subscribe Now](https://maas.xfyun.cn/modelSquare?ch=maas_lm_l2E)
YouTip