If you sold the property now or within 18 months of moving out, there would be no Capital Gains Tax to pay as the whole gain would be covered by main residence relief.
If you transfer your share of the property to your wife and it is subsequently sold after a period of letting, then your wife would qualify for exemption from CGT for the period that she lived in the property and for the last 18 months of ownership. Letting relief would be available for any period of letting not covered by the last 18 months of ownership or owner occupation to a maximum of £40,000. The gain would be calculated using the sale price and the original purchase price as your wife would take your half as her own as if that was the situation from day one.
If the property was put back into joint names before being sold but after the letting ceased, whilst you would qualify for main residence relief for the period that you lived in the property on your share of the gain, you would not be entitled to letting relief on your share of the gain as the property will not have been let during your ownership of it. That in turn could dilute your wife's letting relief on her share of the gain and lead to a higher CGT liability. It might not but it could. It depends on the figures.
Of course, if the property was sold whilst owned only by your wife, if main residence relief and letting relief didn't cover all the gain and your wife had a low income, a large part of the taxable gain would be liable to CGT at 18% and not 28%. As a higher rate taxpayer, you would pay CGT at 28% on the taxable part of your share of any gain.
Much depends on what your future plans are and what the value of the property will be if and when you decide to sell it. Of course, tax rules could also change for the better or worse.
Take a look here
for information on main residence relief and letting relief.