changing effect from margin-left to transform