This study presents a continuation method to calculate flow bifurcation in a two-sided lid-driven cavity with different aspect ratios for anti-parallel motion. In anti-parallel motion, the top and bottom walls of the cavity move in opposite directions simultaneously, while the two walls both moving to the right give parallel motion at the same speed. Comprehensive bifurcation diagrams of the cavity flows with different aspect ratios of the cavities are derived via Keller’s continuation method, and linear- stability analysis is used to identify the nature of the various flow solutions. The Reynolds number (1 ≤ Re ≤ 1,200) is used as the continuation parameter to trace the solution curves. In anti-parallel motion, the evolution of the bifurcation diagrams in cases with different aspect ratios (1 ≤ AR ≤ 2.5) is illustrated. Two stable symmetric flows and one stable asymmetric flow are identified, and the existent regions of the stable flows in the aspect ratios and Reynolds numbers are distinguished. The newly found asymmetric flow state can be obtained at a high aspect ratio and a low Reynolds number.