add window resize and cross fade animation