Set the selected background before animation