Magma swamp: floating and sinking