Comparing SVG, HTML Canvas, and WebGL. How it works, when to use, and why.

preview_player
Показать описание
My first tech talk I did comparing SVG, HTML Canvas, and WebGL. January 2019. I forgot to record my screen (hence the cut in frames), and had sound quality issues due to FPS difference on camera mic / laptop mic.

0:00 - Intro (feel free to skip - nothing of value added here)
5:18 - SVG
36:01 - HTML Canvas
49:00 - WebGL
1:12:10 - Other Animation Effects
1:16:00 - Summary (most important slides!)

SLIDES:

SVG MADE:

SVG INTO CODEPEN:

TL:DR;
When comparing SVG, HTML Canvas, and WebGL - ask yourself if you need it. Check for edge cases first. WebGL is used in many 3D type of applications that need GPU and shader support. HTML Canvas is great for one off physics demo (see code train).

SVG is the most versatile of the lot, used in data visualization and diagramming tools. It's good for practically any case scenario, since you can treat it as a normal HTML element inline (styling, event listeners, etc).

Social:

P.S.
Quality might not be that great, I forgot to record my screen during presentation, sound quality didn't come out that well.
Рекомендации по теме
Комментарии
Автор

This video deserves more views for the value it gives! For real I really learned a lot!

LePhenixGD
Автор

I've been working with SVGs for a long time, but this video helped me understand it better. Thanks.

malaakh
Автор

Still bummed I missed this in "meat space" but this is a great video, thanks for posting!

JoeZack