implement animated sprites in browser ui