Complex animation on the web has been generally limited to Flash. Flash is great for what it provides, but there are limitations, expensive tools, a browser plugin, etc… It is possible to run animations using images and browser native DOM, but this too is limited to basically static graphics and the DOM box model. Read more
The Captico KML compressor uses the Douglas-Peucker Algorithm to reduce the number of vectors in your KML file. Adjust the tolerance to see how the polygon count is effected. Try this sample KML file. It’s open source and mostly Javascript requiring your browser have Web Workers.