<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery UI effect Example</title> <link href="https://code.jquery.com/ui/1.10.4/themes/ui-lightness/jquery-ui.css" rel="stylesheet"> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> <script src="https://code.jquery.com/ui/1.10.4/jquery-ui.js"></script> <!-- CSS --> <style> #box-2 { height: 100px; width: 100px; background: #b9cd6d; } </style> <script> $(document).ready(function() { $('#box-2').click(function() { $( "#box-2" ).effect({ effect: "explode", easing: "easeInExpo", pieces: 4, duration: 5000 }); }); }); </script> </head> <body> <div id="box-2"></div> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more