fix animation in the index and move the css to its own file