No, you do not pay Capital Gains Tax when you make a gift to your husband, wife or civil partner – as long as you lived together for at least part of the tax year in which you made the gift.
However, if your spouse later sells the asset, the recipient spouse or civil partner is treated as having owned the asset from the date the transferring spouse acquired it (or the 31st March 1982, if later).