A pretty good idea but having an element for each frame can make loading gifs pretty memory intense (DOM-wise) compared to just using a single gif element, no?
For example loading a 3mb gif would be something like 330+ frame elements that are being looped.
But I like the idea though :)