smoother transition with csstransform