You understand that the GIF would be larger than the JS, right? (Apart from other problems with this idea.)