Thank you!
Codewise, the actual mechanic is swapping the gravity and placing an invisible copy of the slope above the player, so that they roll down the invisible slope (because of the inverted gravity), which makes it look like they're rolling up the visible one!