There is no such thing as "html5 animation".
Mostly there are CSS3 animations (with CSS transitions or CSS animations) and Javascript animations.
CSS3 animations are usually well optimized (with a few quirks), but lack support (old IEs) and flexibility (you'll have to use JavaScript to configure them). They are best suited for freezing (with transitions) or basic animation.
JavaScript transition was used based on setInterval. A temporary loop, and within this loop the styles change. JQuery does this, and not very well.
Recently, Window.requestAnimationFrame () was introduced to replace these setInterval animations. Support is limited (old IEs), performance is high (because the browser can skip frames), and it always updates updates internally.
GSAP this requestAnimationFrame(), (, , ...). CSS3 JS ... , .
(canvas, svg... event webgl), .