Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

jQuery UI Resizable animateDuration Option

  • Last Updated : 09 Mar, 2021

The Query UI consists of GUI widgets, visual effects, and themes implemented using jQuery, CSS, and HTML. jQuery UI is great for building UI interfaces for the webpages. The jQuery UI Resizable animateDuration option is used to animate the resizable element in a given duration. It takes number or string type value and its default value is “slow”.

This option holds two types of value –

  • Number: It holds the duration in milliseconds.
  • String: It holds the string value for animation duration i.e. “slow” or “fast”.


    animateDuration: "fast"

CDN Link: First, add jQuery UI scripts needed for your project.

<link rel=”stylesheet” href=”//”>
<script src=”//”></script>
<script src=”//”></script>



<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <link rel="stylesheet" href=
    <script src=
    <script src=
        h1 {
            color: green;
        #first_div {
            width: 150px;
            height: 150px;
            background: green;
            margin: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
    <h3>jQuery UI Resizable animateDuration Option</h3>
    <div id="first_div">First Div</div>
        $(function () {
                animate: true,
                animateDuration: 1000



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!