Beyond “Responsive Web Design”    “...let a thousand devices bloom...”
Who am I?
Responsive Web Design?
Ethan Marcotte (@beep),     “On Being Responsive”“A responsive design iscomposed of threedistinct parts:”
1. A flexible grid.
1. A flexible grid.  2. Flexible images. Or more specifically, imagesthat work in a flexible context.
1. A flexible grid.  2. Flexible images. Or more specifically, imagesthat work in a flexible context.   3. Media queries.
Great.So what do ResponsiveWeb Designs look like?
Colly.com?
Flexible grid Flexible images Media queries
“Switchy” designNot responsive design
Hicksdesign.co.uk?
Flexible grid Flexible images Media queries
Awesome.So why do I care?
“RWD is just fancy tricks for mobile, and no one  uses mobile anyway.”“iPhones and Android phones canbrowse the current we...
Really? Think again.
What is “mobile?”
2010: 38% of US cell         phone users access the         Internet on their phones         (about 89 million)         53...
So how do we do   this thing?
It all starts with planning.
Luke Wroblewski (@lukew):  http://goo.gl/0kTal
More space shouldn’t mean more stuff.
Back to the basics:  1. A flexible grid.  2. Flexible images.  3. Media queries.
Flexible / Fluid Grids• Size everything in ems or percentages• Flexible: Ems for everything• Fluid: Percentages for width,...
You’re already halfway there...
Flexible Images    Two methods: foreground (<img>)and background (CSS)
Flexible <img>s• max-width: 100%; width: 100%;• overflow: hidden;
Flexible backgroundsUse background-position to selectively crop your backgrounds http://goo.gl/YLLC3
Responsive Images   • Uses .htaccess to look    for “responsive” image    requests, and feeds    them a 1px    transparent...
And now, the moment you’ve     been waiting for...
Media Queries• Ever make a print stylesheet before?• <link rel=”stylesheet” href=”#” media=”screen” />• <link rel=”stylesh...
Media Queries              In your HTML:<link rel=”stylesheet” href=”#” media=”screen and (min-device-width: 640px)” />   ...
• height                • color• width                 • color-index• device-height         • monochrome• device-width    ...
Remember: Mobile First!  • No support for media queries   is the first media query  • Mobile stylesheet   + media queries  ...
Mobile Viewports• Newer smartphones pretend to be much larger than they actually are (980px for iPhone)...• ...meaning the...
Mobile Viewports<meta name=”viewport”    content=”width=device-width,            initial-scale=1.0” />
Going “beyond...”
CSS3 Transforms    • rotate    • skew    • scale    • -transform-origin
CSS3 Transitions-transition: property duration easing             • all             • ease             • opacity         •...
CSS3 Transitionsnav li a {    color: rgb(0,0,0);    -webkit-transition: all 1s ease-out;}nav li a:hover {    color: rgb(20...
CSS3 Animation• Define keyframes in CSS• Set duration, number of iterations, animation direction, timing function• only wor...
What if my phone can’t do that?
Modernizr.js
yepnope.js
“The choice is not betweenusing media queries and creatinga dedicated mobile site; thechoice is between using mediaqueries...
That’s about it...      Questions?          @kzurawelhttp://arborwebsolutions.com
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)
Upcoming SlideShare
Loading in...5
×

(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)

8,823

Published on

My presentation from WordCamp Miami 2011, Beyond "Responsive Web Design". This is a totally re-worked version of my previous presentation, with a focus on how to actually implement responsive design.

Published in: Design
1 Comment
21 Likes
Statistics
Notes
  • ritakoneh@hotmail.co.uk
    Hello My New friend
    My name is rita i saw your profile at(www.slideshare.net) and i love it i think we can click so please i will like you to email me back through my email address thus: so that i can told you more about me and give you my sweet picture so that you can know me will ok.
    Awaiting to see your lovely reply soonest.
    Miss rita ritakoneh@hotmail.co.uk
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total Views
8,823
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
188
Comments
1
Likes
21
Embeds 0
No embeds

No notes for slide

(Practical) Beyond Responsive Web Design (WordCamp Miami 2011)

  1. 1. Beyond “Responsive Web Design” “...let a thousand devices bloom...”
  2. 2. Who am I?
  3. 3. Responsive Web Design?
  4. 4. Ethan Marcotte (@beep), “On Being Responsive”“A responsive design iscomposed of threedistinct parts:”
  5. 5. 1. A flexible grid.
  6. 6. 1. A flexible grid. 2. Flexible images. Or more specifically, imagesthat work in a flexible context.
  7. 7. 1. A flexible grid. 2. Flexible images. Or more specifically, imagesthat work in a flexible context. 3. Media queries.
  8. 8. Great.So what do ResponsiveWeb Designs look like?
  9. 9. Colly.com?
  10. 10. Flexible grid Flexible images Media queries
  11. 11. “Switchy” designNot responsive design
  12. 12. Hicksdesign.co.uk?
  13. 13. Flexible grid Flexible images Media queries
  14. 14. Awesome.So why do I care?
  15. 15. “RWD is just fancy tricks for mobile, and no one uses mobile anyway.”“iPhones and Android phones canbrowse the current web just fine.”
  16. 16. Really? Think again.
  17. 17. What is “mobile?”
  18. 18. 2010: 38% of US cell phone users access the Internet on their phones (about 89 million) 53% of cell phone Internet users access websites at least once per day In 2009, only 17% of US cell phone users owned smartphoneshttp://goo.gl/YMtgf
  19. 19. So how do we do this thing?
  20. 20. It all starts with planning.
  21. 21. Luke Wroblewski (@lukew): http://goo.gl/0kTal
  22. 22. More space shouldn’t mean more stuff.
  23. 23. Back to the basics: 1. A flexible grid. 2. Flexible images. 3. Media queries.
  24. 24. Flexible / Fluid Grids• Size everything in ems or percentages• Flexible: Ems for everything• Fluid: Percentages for width, ems for height• The Golden Formula: target ÷ context = result
  25. 25. You’re already halfway there...
  26. 26. Flexible Images Two methods: foreground (<img>)and background (CSS)
  27. 27. Flexible <img>s• max-width: 100%; width: 100%;• overflow: hidden;
  28. 28. Flexible backgroundsUse background-position to selectively crop your backgrounds http://goo.gl/YLLC3
  29. 29. Responsive Images • Uses .htaccess to look for “responsive” image requests, and feeds them a 1px transparent .gif • Then, uses JS to detect browser width and load the appropriate-size image accordinglyhttp://goo.gl/Eu3zA
  30. 30. And now, the moment you’ve been waiting for...
  31. 31. Media Queries• Ever make a print stylesheet before?• <link rel=”stylesheet” href=”#” media=”screen” />• <link rel=”stylesheet” href=”#” media=”print” />
  32. 32. Media Queries In your HTML:<link rel=”stylesheet” href=”#” media=”screen and (min-device-width: 640px)” /> In a stylesheet: @media screen and (orientation:landscape) { #content { ... } }
  33. 33. • height • color• width • color-index• device-height • monochrome• device-width • resolution• orientation • scan• aspect-ratio • grid• device-aspect-ratio
  34. 34. Remember: Mobile First! • No support for media queries is the first media query • Mobile stylesheet + media queries = desktop site
  35. 35. Mobile Viewports• Newer smartphones pretend to be much larger than they actually are (980px for iPhone)...• ...meaning they get your desktop stylesheet.
  36. 36. Mobile Viewports<meta name=”viewport” content=”width=device-width, initial-scale=1.0” />
  37. 37. Going “beyond...”
  38. 38. CSS3 Transforms • rotate • skew • scale • -transform-origin
  39. 39. CSS3 Transitions-transition: property duration easing • all • ease • opacity • ease-in • font-size • ease-out • text-shadow • ease-in-out • color • linear • height • cubic-bezier • width • left • top...
  40. 40. CSS3 Transitionsnav li a { color: rgb(0,0,0); -webkit-transition: all 1s ease-out;}nav li a:hover { color: rgb(200,0,0); -webkit-transition: all 1s ease-in;}
  41. 41. CSS3 Animation• Define keyframes in CSS• Set duration, number of iterations, animation direction, timing function• only works in webkit
  42. 42. What if my phone can’t do that?
  43. 43. Modernizr.js
  44. 44. yepnope.js
  45. 45. “The choice is not betweenusing media queries and creatinga dedicated mobile site; thechoice is between using mediaqueries and doing nothing at all.” - Jeremy Keith, “A responsive mind”
  46. 46. That’s about it... Questions? @kzurawelhttp://arborwebsolutions.com
  1. Gostou de algum slide específico?

    Recortar slides é uma maneira fácil de colecionar informações para acessar mais tarde.

×