Added some CSS properties to make animations go smoother