Post
I (partially) recreate the VT animations in the real DOM (on hidden elements). Upon interruption of the active View Transition I read the mid-flight values from those copies, which I then use as the starting point for the next VT.
0 reposts1 like
You can sniff out the VT animations if you want (see www.bram.us/2025/01/01/v... for details) but I rely on manually getting the position of the animated subjects — hello getBoundingClientRect — before and after the VT.
Since I have a hunch you want to know the finer details: the reason I get the positions from _real_ elements is because the values in the keyframes (which are used on the pseudos) are in a different coordinate space: the "Snapshot Containing Block". brm.us/snapshot-con... has all info.