Since home loans usually have a long tenure, many people sell off their property before the end of the loan tenure. The process of selling of your property while continuing the loan is not very complicated.
You need to approach your bank with which you have mortgaged the property for a home loan and request for a loan outstanding letter. A loan outstanding letter contains your current outstanding balance in the loan account.
Now you have 2 options. If you have money in hand to close the loan, you can do it and try selling out the property. Or if in case you have identified a buyer, you can get into an agreement with him. The buyer can then pay the outstanding loan amount to the bank and the remaining amount to you. Once the buyer makes the full and final payment to the bank, the original documents will be released and you can transfer the property to his name legally.