0

I try to change button bg-color on mouse move but code change them all when mouse move in one button help please

https://code.sololearn.com/WA21a2a10A4a/?ref=app

9th Feb 2021, 7:49 AM
Hafsah Rizg
Hafsah Rizg - avatar
5 Answers
+ 2
Is there any reason why you don't want to do this via CSS and use hover?
9th Feb 2021, 11:39 AM
ODLNT
ODLNT - avatar
+ 1
Ok i will see.
9th Feb 2021, 8:23 AM
Abhay
Abhay - avatar
+ 1
Maybe, you should experiment with "setTimeout(function, delay)" function for the element background color to change in some time.
9th Feb 2021, 9:05 AM
#0009e7 [get]
#0009e7 [get] - avatar
0
So what do you want ? The for loop is obviously changing all at once if mouse over happens.
9th Feb 2021, 8:17 AM
Abhay
Abhay - avatar
0
How i can fix the code so if mouse move in first button change just this button.
9th Feb 2021, 8:20 AM
Hafsah Rizg
Hafsah Rizg - avatar