changes the background color of dom elements over a range