fix css bugs and fix transition with webkit prefix