How does mixing baking soda water vinegar and raisins make the raisins float up then sink?

mixing vinegar and baking soda produces a gas and the gas bubbles make the raisins rise. When the gas has finished escaping the raisins sink