fix the transition

now it can work in any browser