Updated styling for animations. Added the demo loop function