What happens to the clip
The file is decoded on your device, frames are captured from the clip, and each captured frame is compressed and written into one .webp file. Every frame stores its own display time, and the file records how many times the animation should loop, so a browser plays the frames in sequence at those times - the same playback model as a GIF, with a modern codec behind each frame.