I have a family member who lived in Russia at the time. They wanted to get rid of Yeltsin, so everyone formed one big coalition against him to proof themselves against election fraud, and to block anything he tried to pass through the Rada. This led to his resignation and the appointment of Putin.
Essentially, by this point everyone could see that Yeltsin was a drunk who sold off his country to the Americans and the mob. They decided to get him removed at all costs. At first, Yeltsin was thinking about utilizing the Army, but they were also against him, so he negotiated to resing in exchange for no investigations on his corruption or that of his guys.
I think basically every big party were part of goverment between 1998 - 1999. Also the communists had a lot of seats in the Duma, so they needed their support to govern.
The LDPR (actually called LDPSU back then) also supported the 1991 coup attempt against Gorby.