Fixed some cross-browser bugs and added resize in/out animations