Other way around is also true. Iran treats their relations with Russia and China as a bargaining chip to negotiate with the West with the hope that they would one day be accepted as a member of West.
Iran as it is clearly isn't, it's problems with the west are of its own design(big Satan etc).
Iran isn't hive mind though, and there are
different people in Iran, thinking
differently. Revolution wasn't exactly anti-western in the first place. Anti-western were people who were strong enough to claim its spoils. Which were a minority of revolutionaries, though they had the strongest person/symbol, and represented significant part of population overall.
The problem is simple(or not). After the revolution, Iran didn't just break up with US, it successfully
humiliated it, and didn't pay for it.
It can't "just" realign, even if willing opposition will come into power; realignment after humiliation will be something between Iraq and Syria. Which is kinda meh.
Current leadership is anti American,
but they're pro-themselves(Shiite international; only after this summer they somewhat realigned into Iranian nationalism, when, to their visible surprise, nation didn't abandon them).
Pro China? Not really, there's currently very basic incompatibility between two(again: Iranian leadership claims legitimacy as center of Shiite world, aka it's by default a rather aggressive and irrational religious power). And frankly China isn't really interested. Not anymore than it does already, supporting Iran alive through oil purchases.
Russia...Iran has
a lot of hatchets with Russia(let's not forget Russia is a humiliating colonial memory here), which all of Iran remembers well (and Russia understands well enough... though Russian embassy was "smart" enough to congratulate Iranians on anniversary of Tehran conference).
Alignment with Iran for Russia is by default situational, conditional, and suspiciously careful; it's already huge sign of boldness and greatness of Soleimani for managing so much in such conditions...but Soleimani is dead, and it's quite clear there's no one in Iranian elites who could match him.