modify css for transition