jQuery UI Bounce Effect
In this article, we are going to show the effect of bounce using jQuery UI. All the content will show the bounce effect when the action button is clicked which actually triggers the bounce effect script.
$( ".selector" ).effect( selectedEffect, options, time(in ms), callback );
- selectedEffect: Select any effect given in jQuery UI.
- options: Added for certain functionality (optional).
- time: The time to complete the effect in microseconds.
- callback: Added for certain functionality (optional).
Return value: It does not return any value.
Scripts added: Please download the library to include relevant pre-compiled files or use the paths for the given scripts below.
<link rel=”stylesheet” href=”//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css”>
Example: In this example, we are going to show the bounce effect using jQuery UI. We will trigger the script using a button.
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.