Door rotating in place when i try to open it

now my door fling 90degree and then continues another 90degree and doesnt even close