After doing a lot of Google searches and looking at other posts here, I still can't figure out if this is still possible. I want to basically set the background color on my table rows, which quickly fades to a different color: hover - is this possible with jQuery?
I am using several tables that will have or will have different colors for background hovering, at the moment I am only using CSS to create a hover event, but obviously I want to try adding a subtle but nice effect as they are nice sharp rows of lines .
**** EDIT ****
I found a solution: I am using jQuery UI -
$('tr').mouseover(function() {
$('td', this).stop(true, true).animate
({ backgroundColor: "red" }, 1000);
});
$('tr').mouseout(function() {
$('td', this).stop(true, true).animate
({ backgroundColor: "#666" }, 1000);
});
source
share