JqueryUI - Animate the resize action using the animate option (boolean).


SUBMITTED BY: jlolk3r

DATE: Jan. 22, 2016, 7:33 a.m.

FORMAT: HTML

SIZE: 851 Bytes

HITS: 1268

  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>jQuery UI Resizable - Animate</title>
  6. <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
  7. <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  8. <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
  9. <link rel="stylesheet" href="/resources/demos/style.css">
  10. <style>
  11. #resizable { width: 150px; height: 150px; padding: 0.5em; }
  12. #resizable h3 { text-align: center; margin: 0; }
  13. .ui-resizable-helper { border: 1px dotted gray; }
  14. </style>
  15. <script>
  16. $(function() {
  17. $( "#resizable" ).resizable({
  18. animate: true
  19. });
  20. });
  21. </script>
  22. </head>
  23. <body>
  24. <div id="resizable" class="ui-widget-content">
  25. <h3 class="ui-widget-header">Animate</h3>
  26. </div>
  27. </body>
  28. </html>

comments powered by Disqus