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

JQuery Autocomplete without using label, value, id -

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

JAVA - what is the difference between void and boolean methods? -