Re: [csswg-drafts] [css-view-transitions-1] Handling DOM updates when a transition's animation is reverse back to start/canceled (#7957)

I handled this when creating the [gesture demo](https://twitter.com/jaffathecake/status/1595811562614558720) and it worked pretty well.

I reversed the animation, then held the final state until I'd reset the DOM back to its original state.

The only really hacky bit, is I had to create a long dummy animation to prevent the view transition ending before the old DOM was back in place. https://github.com/w3c/csswg-drafts/issues/8132 would solve that.

I think we can close this until we have more concrete info on the patterns and what could be done to make them easier.

-- 
GitHub Notification of comment by jakearchibald
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7957#issuecomment-1333598808 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 1 December 2022 11:10:05 UTC