Cross browser compatible avatar animation