View Transition JavaScript API

How to interact with view transitions using JavaScript