fix css, fix animation logic