450 likes | 531 Views
Fantastic 5: Use the Power of HTML5 for Good. Michael Sheyahshe Senior Associate | Software Developer. Contact & Connect. eLearnDevTech blog – http:// elearndevtech.blogspot.com Twitter @ mas_edev @ damoEdev , eLearnDevGeek , @ gardelearndev. Obligatory Background.
E N D
Fantastic 5: Use the Power of HTML5 for Good Michael Sheyahshe Senior Associate | Software Developer
Contact & Connect eLearnDevTech blog – • http://elearndevtech.blogspot.com Twitter • @mas_edev • @damoEdev, eLearnDevGeek, @gardelearndev
Obligatory Background • Information Technology • 16+ years @ academic level, specializing in: • Animation • Digital Media • 3D Modeling / Games / Sims / etc. • Current position • ICF Software Developer • Academic stuff • Master of Fine Arts • Bachelor of Arts – 1) Film 2) Native Studies • Research authority • Childhood = pop culture junkie • Comic books PLUS, media that celebrates notion of ‘superhero’: • 1950s TV - Lone Ranger & Tonto • 1960s TV - Batman • 1970s TV – Six Million Dollar Man | Bionic Woman | Wonder Woman • Japanese TV - Ultraman • Author of book on pop culture (specifically on comic books)
Overview • Emerging HTML5 technologies • How these HTML5 tools work • How to implement the HTML5 tools • Tips and tricks to use HTML5 tools • Various open-source code and tools to use • Overall development techniques to increase interactivity
HTML5’s “Family”* *sort of
What’s In? • <!DOCTYPE html> • Canvas • audio/video elements • local storage HTML5 • What’s Out? • Old L-O-N-G Doctype • <frame>, <noframes>, & <applet> • <font>, <strikethrough>, etc. now handled by CSS HTML4
HTML5 Migration from HTML4 HTML4
HTML5 Tips & Tricks Save time; save resources.
Recycle / Reuse Don’t re-invent the wheel…
Use Modernizr Browser supports? Use to offer maximum coverage http://modernizr.com/
Lookout for BOMs Ensure that text files are properly formatted
Open Source Tools for HTML5 Get the most bang for your buck.
Responsive Design* • Think beyond desktop • Leverage the ‘mobile’ of ‘mobile device’ • GPS/location • Camera • Devices dilemma • Different configuration • Target device specialties • Ex. PNGs on iPad • http://html5up.net/ • http://html5templates.com/ *don’t forget images
Gestures - HammerJS Small / free / robust http://eightmedia.github.com/hammer.js/
Real-time 3D - ThreeJS • Example 3: Static image vs. 3D rotation
Interactive content - TouchSlider • Quickly add gestures and touch controls to existing content • http://touchslider.com/ • Use as shortcut for digital comics
HTML5 Swiffy Flash https://www.google.com/doubleclick/studio/swiffy/
Making HTML5 ‘Work’ Digital Comic Book
Use Photoshop to arrange Cut it Out Slice up full page / large info chunk into smaller ones
Panel by Panel View Use TouchSlider or similar code to scroll through panels via gestures
Full Page to Panels and Back Use simple JavaScript toggle function to show/hide full page or panel view
Orient It • Use JavaScript • listen for orientation change • toggle between landscape / portrait view
Adding Gestures Using HammerJS
Note: Lectora used, but can work for almost any HTML content Make JS calls
You can DIV it !!! Finish what you start….
Last Call Place new function at HTML page bottom.
Learn by Example Look familiar? Hammer.js demo code
Finally… • HTML5 now… • Easily convert HTML4 docs to HTML5 • Flash to HTML5? • …but THINK ahead • Device/Design layout • User interaction/gestures • …and always have a backup plan (esp for IE) • “If IE…” • Modernizr
Contact & Connect eLearnDevTech blog – • http://elearndevtech.blogspot.com Twitter • @mas_edev • @damoEdev, eLearnDevGeek, @gardelearndev