The View Transitions API example:

Animating an element to wherever the user clicks using Web Animations API: