Expresses the idea of 'Just as...is/does'; 'while', 'as...follows'.
Long explanation:
The がままに grammar point is used to describe an action or situation occurring exactly as it is, without any change or control over it, often happening naturally, unintentionally or involuntarily. It can be translated as 'just as...is/does', 'while', 'as...follows' in English. The formation is straightforward and it is used with the dictionary form of verbs.