added animate to resize background