0

Can i execute a javascript for 2 div?

i want to animate 2 images but if i create 2 javascript with different variables it doesn't work. i want to animate 2 images, 1 from right and 1 from left, but i can't do this. Can someone help me please?

7th Nov 2016, 12:57 PM
Get Rekt
Get Rekt - avatar
1 Resposta
+ 3
then change the name of variable to obj1 obj2* and if you are making animation you can use CSS they are very nice for anima. why are you using script in two div's keep them in one place if they are working the same. however if you want to use same variable you can make them function and call the function. this way you can add button too. be sure to make two different fubctions and use can same name for the variable
7th Nov 2016, 5:09 PM
Sandeep Chatterjee