Loading and playing animation on page