Chrome Extension

jQuery Animation

$("button").click(function() {
    $(".element").animate({
        left: '50px',
        height: '350px',
        width: '350px'
    });
}, "slow");
Best JSON Validator, JSON Tree Viewer, JSON Beautifier at same place. Check how cool is the tool

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?
0 Comments
Join Devsheet Ask a Question