Possibility of working different locations half the year?

Has anyone been able to work in a different location half the year? And I don’t mean different as in a new place but more so spend six months in one country and the other six in another country. Let’s call the country I reside country A and the country I want to spend half the year in country B, I like living in country A but no longer want to deal with the winters and only be here for the summers, and spend the winters in country B, is this possible? Would I be able to do this under full time employment day from a multinational company or would this only work under contract? Does anyone in the tech or business industry have this opportunity? If so what do you work as and how did get the job?