jquery

jQuery Animation

$("button").click(function() {
    $(".element").animate({
        left: '50px',
        height: '350px',
        width: '350px'
    });
}, "slow");

The code will apply animation on the HTML element which has class 'element' after button click which exists on the HTML page. The element with class 'element' will move to 50px from left, its height and width will be formed to 350px dimension.

Was this helpful?