use autoprefixer for transition, remove duplicated code