2011/11/3 Rohit Mehta <[email protected]>:
> OK..I can do that, but to get it to original position I can use toggle
> right?
>

Right.

$('.box').toggle(function() {
    $(this).animate({
        width: '+=100',
        height: '+=100',
        margin: '-=50'
    })
}, function() {
    $(this).animate({
        width: '-=100',
        height: '-=100',
        margin: '+=50'
    })
});

Demo: http://jsfiddle.net/Poetro/Q98Ax/1/


-- 
Poetro

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to