Can anyone think of a way to update more than one background definition at a time?
I've gotten this far with some code but I want to update a lot of different flavors of gradient background for one element.
$('ul#tabs li').on('mousemove',function(e){
var x= Math.round(((e.pageX - this.offsetLeft)*100)/$(this).width());
x= x-10;
$(this).find(".highLight").css({
'background': '-webkit-linear-gradient(left,
rgba(255,255,255,0) 0%,
rgba(255,255,255,0.5)'+x+'%,
rgba(255,255,255,0) 100%)'
});});
Any thoughts would be greatly appreciated.