23
HTML5, CSS3, Canvas, SVG, WebGL, WTF, BBQ. kilianvalkhof.com – @kilianvalkhof

Html5, css3, canvas, svg and webgl

Embed Size (px)

DESCRIPTION

Presentation given on 20th of April at The university of applied sciences in Rotterdam. A broad overview of upcoming web technologies.

Citation preview

Page 1: Html5, css3, canvas, svg and webgl

HTML5, CSS3, Canvas, SVG, WebGL, WTF, BBQ.kilianvalkhof.com – @kilianvalkhof

Page 2: Html5, css3, canvas, svg and webgl

HTML 1(1991)

Page 3: Html5, css3, canvas, svg and webgl

HTML 5...2022!?ishtml5readyyet.com

Page 4: Html5, css3, canvas, svg and webgl

HTML...javascript...DOM

Page 5: Html5, css3, canvas, svg and webgl

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!doctype html>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta charset=”utf-8”>

Page 6: Html5, css3, canvas, svg and webgl

<header><hgroup><nav><section><article><aside><figure><footer> http://ejohn.org/blog/html5-shiv/

Page 7: Html5, css3, canvas, svg and webgl

<input type= emailurlrangenumberdate/month/weektimesearchcolor

http://www.modernizr.com/

Page 8: Html5, css3, canvas, svg and webgl

...Microdata, WAI-Aria

validator.w3.org doet al html5!

Page 9: Html5, css3, canvas, svg and webgl

CSS3

Candidate Recommendation ()

05 Dec 08

23 May 08

14 May 03

15 Sep 09

11 May 04

12 Mar 09

30 Jun 09

21 July 08

Working Draft ()

10 Oct 06

19 Sep 06

15 Dec 05

06 Mar 07

04 May 07

15 Oct 09

18 Jun 09

09 Aug 07

09 Aug 07

16 Dec 04

05 Sep 07

Flexible Box Layout (Medium Priority)

23 Jul 09

Images Values (Medium Priority)

23 Jul 09

01 Dec 09

20 Mar 09

01 Dec 09

20 Mar 09

04 Aug 09

13 Aug 03

07 Nov 02

14 May 03

15 May 02

24 Feb 04

13 Aug 03

Page 10: Html5, css3, canvas, svg and webgl

Selectors:nth-of-child(even):last-of-type():not():empty

Page 11: Html5, css3, canvas, svg and webgl

@font-face

@font-face {font-family: 'SansBold';font-weight:700;src: url('../fonts/sans/Sans-Bold.eot');src: local('Sans Bold'), local('Sans-Bold'), url('Sans-Bold.woff') format('woff'), url('Sans-

Bold.otf') format('opentype'), url('Sans-Bold.svg#Sans-Bold') format('svg');}

fontsquirrel.com

Page 12: Html5, css3, canvas, svg and webgl

CSS AnimationsCSS Transitions

a { background-color:#fff; -webkit-transition: background 1s linear;} a:hover { background-color:#f00;}

@-webkit-keyframes pulse { from { opacity: 0.0; font-size: 100%; } to { opacity: 1.0; font-size: 200%; }}

a { -webkit-animation-name:pulse; -webkit-animation-duration:2s; -webkit-animation-count:infinite;}

Page 13: Html5, css3, canvas, svg and webgl

Simpel: http://kilianvalkhof.com/uploads/spinners

Minder simpel: http://53miles.com

Heel cool: http://tylergaw.com/lab/themanfromhollywood/

Page 14: Html5, css3, canvas, svg and webgl

...rgba, hsv, multicolumns, rounded corners, gradients, text-shadows, background sizing, multiple backgrounds, transforms

cssdesk.com

Page 15: Html5, css3, canvas, svg and webgl

Var awesome = document.querySelectorAll(“div>p:first-child span.name[“title”]”);

Nieuwe javascript API's

querySelectorAll:

Page 16: Html5, css3, canvas, svg and webgl

Localstorage/sessionstorage

window.localStorage['key'] = value;window.sessionStorage['key'] = anothervalue;

Page 17: Html5, css3, canvas, svg and webgl

ApplicationCache(a.k.a. Iphone web apps)

<html manifest="cache-manifest">CACHE MANIFEST

CACHE:/src/scripts.js/src/style.css/src/background.png/src/sprite1.png

Page 18: Html5, css3, canvas, svg and webgl

...websockets, webworkers, geolocation, drag and drop

Page 19: Html5, css3, canvas, svg and webgl

<video>, <audio>

youtube.com/html5/

Ingebouwd. Eigen design. Besturen via javascript: video.play(); video.pause();

Page 20: Html5, css3, canvas, svg and webgl

<Canvas>2dBitmapSnel (geen DOM)

https://developer.mozilla.org/en/Canvas_tutorialhttp://mrdoob.com

Page 21: Html5, css3, canvas, svg and webgl

SVG2dvectorDOM (gratis events)

Raphaeljs.comGrafico.kilianvalkhof.com

Page 22: Html5, css3, canvas, svg and webgl

WebGL3dBovenop CanvasOpenGL 2.0

...webkit nightlies, chrome dev builds

http://www.youtube.com/watch?v=dgTnHjPHeks

Page 23: Html5, css3, canvas, svg and webgl

Vragen?

Kilian Valkhof

[email protected]@kilianvalkhof op twitter