Fixed initial animations and resize