I have approved H1B from my current employer but it is not yet stamped. I want to resign the company but have few concerns-

1> Can my employer cancel my H1 upon my resignation?
2> Can I get my H1 transfer from India?
3> I there any maximum allowed duration after I resign from my current employer to get my H1B transferred?

Your help will be really appreciated.