How to animate two pics using jquery or javascript? -


i have 2 images , want animate these on click of button.i want when click on button both images comes closer each other. how can it? can please me it.

something like:

$('input[type=button]').click(function() { $('#pic1').animate({left:+=50}); $('#pic2').animate({left:-=50}); }); 

Comments

Popular posts from this blog

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

c++ - Accessing inactive union member and undefined behavior? -

php - Get uncommon values from two or more arrays -