Change the background smoothly