Use effects of the jQuery UI Effects library in your themes and plugins!
In your theme or plugin, if you want to load the Bounce effect, use wp_enqueue_script:
<?php
function my_init_method()
{
wp_enqueue_script('jquery-ui-effects-bounce');
}
add_action('init', 'my_init_method');
?>
WordPress charge jQuery, jQuery UI Effects Core and jQuery UI Effects Bounce.
Note that all effect scripts are loaded in the footer.
Add and load a new script that depends on jQuery UI Effect Highlight:
<?php
wp_enqueue_script(
'my-script',
get_bloginfo('template_url', 'raw') . '/js/my-script.js',
array('jquery-ui-effects-highlight'),
'1.0',
true
);
?>
Prefixing the name of the effect by jquery-ui-effects-. Lowercase string.
For example, load the Shake effect with:
jquery-ui-effects-shake.WPjQueryUIEffects::getHandle('shake').No. Please note that jquery-ui-core (ui.core.js file) is not a dependency for the effects to work.
The WP jQuery UI Effects plugin use the version 1.7.2. Requires jQuery 1.3+.
Sure can! Add your feature request or report your bug report other at the bug tracker.
Requires: 2.8 or higher
Compatible up to: 3.0-alpha
Last Updated: 2010-1-5
Downloads: 11,701
Got something to say? Need help?