How to Develop a Rich, Native-quality User Experience for Mobile Using Web Standards

9,351 views
9,234 views

Published on

Presentation given at Web 2.0 Expo, NY.

Published in: Technology
2 Comments
26 Likes
Statistics
Notes
No Downloads
Views
Total views
9,351
On SlideShare
0
From Embeds
0
Number of Embeds
104
Actions
Shares
0
Downloads
313
Comments
2
Likes
26
Embeds 0
No embeds

No notes for slide

How to Develop a Rich, Native-quality User Experience for Mobile Using Web Standards

  1. 1. How to Develop a Rich, Native-quality User Experience for Mobile Using Web Standards DAVID KANEDA, SENCHA
  2. 2. @davidkaneda @senchainc @jqtouch @webkitbits @9bits
  3. 3. How to Develop a Rich, Native-quality User Experience for Mobile Using Web Standards
  4. 4. WAP’s dead, baby. WAP’s dead.
  5. 5. US Mobile Smartphone Traffic 39% iOS Android RIM 47% WebOS Winmo Other 7% 3% 2%2% http://metrics.admob.com January 2010
  6. 6. Did someone say devices?
  7. 7. 230,000
  8. 8. 230,000 iOS activations a day.
  9. 9. 60,000 Android shipments a day.
  10. 10. COMING SOON… SAMSUNG GALAXY TAB
  11. 11. BLACKBERRY TORCH
  12. 12. WEBOS 2.0
  13. 13. Let’s talk tech.
  14. 14. HTML5
  15. 15. new elements
  16. 16. new elements section, article, header, footer, aside yawn.
  17. 17. new features
  18. 18. new features web storage web workers form validation microdata
  19. 19. new input types
  20. 20. new input types TYPE=EMAIL TYPE=URL TYPE=NUMBER
  21. 21. <video> & <audio>
  22. 22. <video> & <audio> <video> can be styled like other elements
  23. 23. <video> & <audio> <video> can be styled like other elements JavaScript control over playback
  24. 24. <video> & <audio> <video> can be styled like other elements JavaScript control over playback Quick tip: Autoplay can work, even if Apple says otherwise.
  25. 25. cache manifest
  26. 26. cache manifest Make apps o ine-accessible
  27. 27. cache manifest Make apps o ine-accessible Cache, Network, Fallback
  28. 28. cache manifest Make apps o ine-accessible Cache, Network, Fallback Once you go cache, you never go back
  29. 29. geolocation
  30. 30. geolocation
  31. 31. That’s so <meta>
  32. 32. That’s so <meta> <meta name="viewport" content="width=device-width, initial- scale=1.0, maximum-scale=1.0, user-scalable=0"/> <link rel="apple-touch-icon-precomposed" media="screen and (resolution: 326dpi)" href="/link/to/iOS-114px.png" />
  33. 33. CSS3
  34. 34. CSS3 Basics
  35. 35. CSS3 Basics border-radius box-shadow border-image :before & :after opacity masks gradient @font-face text-shadow reflect
  36. 36. Transforms
  37. 37. Transforms translate rotate scale skew scale
  38. 38. Transitions & Animations
  39. 39. Transitions & Animations More than just pretty e ects Usually hardware-accelerated
  40. 40. Transitions & Animations More than just pretty e ects Usually hardware-accelerated
  41. 41. WebKit-specific CSS
  42. 42. WebKit-specific CSS
  43. 43. WebKit-specific CSS -webkit-tap-highlight-color: rgba(0,0,0,0);
  44. 44. WebKit-specific CSS -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-user-select: none;
  45. 45. WebKit-specific CSS -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-user-select: none; -webkit-touch-callout: none;
  46. 46. Trouble Spots
  47. 47. 350ms to Kill
  48. 48. 350ms to Kill It’s longer than it sounds Avoid with custom touch events Lazy method: bind to touchend
  49. 49. a fixed game
  50. 50. a fixed game No position: fixed; in CSS overflow: auto/scroll; requires two fingers Hack by manipulating touch objects
  51. 51. Need a hand?
  52. 52. jQTouch JQTOUCH.COM
  53. 53. Sencha Touch SENCHA.COM
  54. 54. “Real artists ship.” Steve Jobs
  55. 55. WEB APPS
  56. 56. NATIVE SHELL
  57. 57. Thanks! I’ll be here all week. @davidkaneda http://9-b.it/web20ny

×