CSS3



   The Truth Is Out There...
Credits ( http://lea.verou.me/ )
xfiles sharing
xfiles sharing
Bobby Chen




                   Shanghai

                                          Taiwan




    South Africa
                              Australia
xfiles sharing
Name      :        (Bobby)
Job       :
Hobbies   : Technology, Movie, Pub, Music etc...
Website   : caspercby.me
htt
   p:/
      /ca
         sp
           erc
               .
              by
                 me
发
UI 设计
xfiles sharing
过 CSS 3 ?
CSS3



   The Truth Is Out There...
CSS 3 Prefix

  -o-                                -ms-



-webkit-                            -moz-
    http://leaverou.github.com/prefixfree/
Transparency or RGBA           Rotation


       Multiple background              Outlines



          Border Radius
 Text-shadow                                   Box shadow
                       Animation


          Columns                  gradients
ter
                           in se
                          o p
                         P li
                      gh El ions
                    ou ble sit
                   r i
                  h x
                 T le
            ass F         T Ban tton
                            r u
           P es          g o
                       in di
        e lin unc a
      iz ut                      tion
    S O
 ab le or B x      o & R Posi
T ip        s ckbo ern & nt
   lt Cur e
  u e
M r            h
             C d Pa ng tt Cou
    o um
  M st            n ibili
       u kg r
     C c       ou S
        Ba
CSS Border Radius
     Different Ways...
CSS Border Radius
     Different Ways...
CSS Border Radius
     Different Ways...
CSS Border Radius
     Different Ways...
          Demo
Bro M
                               ws od
CSS Border Radius                er S ern
                                     up
                                        por
                                           t
  Since IE10
    Internet Explorer
  Supported
                           Firefox
  Supported
                            Opera
  Supported (in nightly)
                           Webkit
Modern
     Browser Support
Version 10 +
  Internet Explorer
Version 7 +
                         Firefox
Version 11.5 +
                          Opera
Version 5.1 + (Safari)
                         Webkit
Bro M
                  ws od
CSS Border Radius   er S ern
                        up
                           por
                              t
  Supported
    Internet Explorer
  Supported
              Firefox
  Supported
               Opera
  Supported
              Webkit
CSS Transition
        Transform
CSS Transition
        Transform
      Demo
Bro M
                         ws od
CSS Border Radius          er S ern
                               up
                                  por
         Transform                   t
  Supported
    Internet Explorer
  Supported
                     Firefox
  Supported
                      Opera
  Supported
                     Webkit
Bouncing Transitions
      Element Positioning
Bouncing Transitions
      Element Positioning
Bouncing Transitions
      Element Positioning
Bouncing Transitions
      Element Positioning
Bouncing Transitions
      Element Positioning
Bouncing Transitions
      Element Positioning
transition:2s;
Bouncing Transitions
      Element Positioning


                  GFW




 transition:4s;
Bouncing Transitions
      Element Positioning
                 cubic-bezier


                     GFW




   transition:4s; 4s ease-in-out;
transition-timing-function:cubic-bezier(0,1,1,0);
   transition: all
Bouncing Transitions
      Element Positioning
               Demo




       http://cubic-bezier.com
Bro M
                                ws od
Bouncing Transitions              er S ern
                                      up
           cubic-bezier                  por
                                            t
   Since IE10
     Internet Explorer
   Supported
                            Firefox
   Supported
                             Opera
   Supported (in nightly)
                            Webkit
Multiple Outlines
     Box-Shadow Spread
Multiple Outlines
     Box-Shadow Spread
 box-shadow: 0 0 5px white;




                 LOOK HERE
                   o(O.O)o
Multiple Outlines
     Box-Shadow Spread
          Demo


        LOOK HERE
          o(O.O)o
Multiple Outlines
     Box-Shadow Spread
    box-shadow: 0 0 0 5px black,
                0 0 0 10px gold,
                0 0 0 20px black,
                0 0 0 35px white;




             LOOK HERE
               o(O.O)o
Bro M
                                ws od
Multiple Outlines                 er S ern
                                      up
      Multiple Outline   Effect         por
                                           t
    Supported
      Internet Explorer
    Supported
                           Firefox
    Supported
                              Opera
    Supported
                            Webkit
Click Through Object
          Pointer-Events
Cyril
Click Through Object
          Pointer-Events
                   Tag Cloud




     http://demos.hacks.mozilla.org/openweb/pointer-events/
Click Through Object
          Pointer-Events
                          Tag Cloud



background: -moz-linear-gradient(right center , #002233
                 pointer-events:none;0 transparent;
40px, rgba(0, 34, 51, 0)) repeat scroll 0


            http://demos.hacks.mozilla.org/openweb/pointer-events/
Click Through Object
          Pointer-Events
                          Demo




           pointer-events:none;

     http://demos.hacks.mozilla.org/openweb/pointer-events/
Click Through Object
          Pointer-Events
    Not Supported
      Internet Explorer
    Supported, Since 3.6
                           Firefox
    Not Supported
                            Opera
    Supported
                           Webkit
Click Through Object
          Pointer-Events
             Javascript Workaround
function noPointerEvents (element) {
	 $(element).bind('click mouseover', function (evt) {
	 	 this.style.display = 'none';
	 	 var x = evt.pageX, y = evt.pageY,
	 	   under = document.elementFromPoint(x, y);
	 	 this.style.display = '';
	 	 evt.stopPropagation();
	 	 evt.preventDefault();
	 	 $(under).trigger(evt.type);
	 });
}
http://www.w3schools.com/cssref/css_selectors.asp
http://w3ctech.com/b/archives/617
xfiles sharing
Custom Input Design
    Fancy Checkbox / Radio
Custom Input Design
    Fancy Checkbox / Radio
        css => :checked
Bro M
                             ws od
Custom Input Design            er S ern
                                   up
         css=> :checked              por
                                        t
    Supported
      Internet Explorer
    Supported
                      Firefox
    Supported
                          Opera
    Supported
                          Webkit
Sequential Styling
           Sibling Count
Sequential Styling
           Sibling Count
              css => :last-child
:last-child
Sequential Styling
           Sibling Count
               css => :nth-child
:nth-child(2n+1)
Sequential Styling
           Sibling Count
               css => :nth-child
:nth-child(3n+1)
Sequential Styling
           Sibling Count
Bro M
                             ws od
Sequential Styling             er S ern
                                   up
       css => selectors              por
                                        t
  Supported
    Internet Explorer
  Supported
                     Firefox
  Supported
                          Opera
  Supported
                      Webkit
Background Patterns
         With Pure CSS
Background Patterns
         With Pure CSS
         Linear-Gradient




      http://leaverou.me/css3patterns/#
Bro M
                                ws od
Background Patterns               er S ern
                                      up
          Linear-Gradient               por
                                           t
    Supported since IE10
      Internet Explorer
    Supported
                           Firefox
    Supported (Radial gradients in v12)
                             Opera
    Supported (Safari since 5.1)
                            Webkit
htt
         p:/
            /ca
               sp
                 erc
                     .
                    by
                       me
Th
  ank
      You
         !

More Related Content

DOCX
Developmental genetics
PDF
Selling Power 06 08
PPTX
Writing Portable WebSockets in Java
PDF
substituion_tranposition_algorithmproblem_ceasercipher.pdf
KEY
HTML5 vs Silverlight
PDF
[Worskhop Summits] CSS3 Workshop
PDF
CSS3 - is everything we used to do wrong?
ODP
Css3 101
Developmental genetics
Selling Power 06 08
Writing Portable WebSockets in Java
substituion_tranposition_algorithmproblem_ceasercipher.pdf
HTML5 vs Silverlight
[Worskhop Summits] CSS3 Workshop
CSS3 - is everything we used to do wrong?
Css3 101

Similar to xfiles sharing (20)

PDF
CouchDB - Local Web Platform
PDF
CouchDB Google
PDF
[heweb11] CSS3 Makeover
PPTX
Edge of the Web
PDF
Scala in-practice-3-years by Patric Fornasier, Springr, presented at Pune Sca...
PDF
Scala in practice - 3 years later
PDF
Devoxx 2009: The Lift Framework
PDF
Progressive enhancement - Bridging the gap between CSS2 and CSS3
PDF
CSS3 3D Workshop
PDF
[WebVisions 2010] CSS3 Workshop (Afternoon)
PDF
JavaScript-based Visualization in R
PDF
Modern Browser Support
PDF
Realtime Streaming using Autobahn Websockets
PDF
Opa hackathon
PDF
SVG in Opera’s desktop, mobile & TV browsers — edition 2011
PDF
Seaside Portability
PDF
The State of Web Type
PDF
HiUED 前端/web 發展和體驗
PDF
Progressive enhancement
PPTX
Building WebSocket and Server Side Events Applications using Atmosphere
CouchDB - Local Web Platform
CouchDB Google
[heweb11] CSS3 Makeover
Edge of the Web
Scala in-practice-3-years by Patric Fornasier, Springr, presented at Pune Sca...
Scala in practice - 3 years later
Devoxx 2009: The Lift Framework
Progressive enhancement - Bridging the gap between CSS2 and CSS3
CSS3 3D Workshop
[WebVisions 2010] CSS3 Workshop (Afternoon)
JavaScript-based Visualization in R
Modern Browser Support
Realtime Streaming using Autobahn Websockets
Opa hackathon
SVG in Opera’s desktop, mobile & TV browsers — edition 2011
Seaside Portability
The State of Web Type
HiUED 前端/web 發展和體驗
Progressive enhancement
Building WebSocket and Server Side Events Applications using Atmosphere
Ad

Recently uploaded (20)

PDF
sustainability-14-14877-v2.pddhzftheheeeee
PPTX
The various Industrial Revolutions .pptx
PDF
sbt 2.0: go big (Scala Days 2025 edition)
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Convolutional neural network based encoder-decoder for efficient real-time ob...
PPTX
2018-HIPAA-Renewal-Training for executives
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
Architecture types and enterprise applications.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PPT
What is a Computer? Input Devices /output devices
DOCX
search engine optimization ppt fir known well about this
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
sustainability-14-14877-v2.pddhzftheheeeee
The various Industrial Revolutions .pptx
sbt 2.0: go big (Scala Days 2025 edition)
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
The influence of sentiment analysis in enhancing early warning system model f...
Module 1.ppt Iot fundamentals and Architecture
Convolutional neural network based encoder-decoder for efficient real-time ob...
2018-HIPAA-Renewal-Training for executives
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Architecture types and enterprise applications.pdf
1 - Historical Antecedents, Social Consideration.pdf
Consumable AI The What, Why & How for Small Teams.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
Final SEM Unit 1 for mit wpu at pune .pptx
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
What is a Computer? Input Devices /output devices
search engine optimization ppt fir known well about this
Zenith AI: Advanced Artificial Intelligence
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Two-dimensional Klein-Gordon and Sine-Gordon numerical solutions based on dee...
Ad

xfiles sharing

  • 1. CSS3 The Truth Is Out There...
  • 5. Bobby Chen Shanghai Taiwan South Africa Australia
  • 7. Name : (Bobby) Job : Hobbies : Technology, Movie, Pub, Music etc... Website : caspercby.me
  • 8. htt p:/ /ca sp erc . by me
  • 9.
  • 13. CSS3 The Truth Is Out There...
  • 14. CSS 3 Prefix -o- -ms- -webkit- -moz- http://leaverou.github.com/prefixfree/
  • 15. Transparency or RGBA Rotation Multiple background Outlines Border Radius Text-shadow Box shadow Animation Columns gradients
  • 16. ter in se o p P li gh El ions ou ble sit r i h x T le ass F T Ban tton r u P es g o in di e lin unc a iz ut tion S O ab le or B x o & R Posi T ip s ckbo ern & nt lt Cur e u e M r h C d Pa ng tt Cou o um M st n ibili u kg r C c ou S Ba
  • 17. CSS Border Radius Different Ways...
  • 18. CSS Border Radius Different Ways...
  • 19. CSS Border Radius Different Ways...
  • 20. CSS Border Radius Different Ways... Demo
  • 21. Bro M ws od CSS Border Radius er S ern up por t Since IE10 Internet Explorer Supported Firefox Supported Opera Supported (in nightly) Webkit
  • 22. Modern Browser Support Version 10 + Internet Explorer Version 7 + Firefox Version 11.5 + Opera Version 5.1 + (Safari) Webkit
  • 23. Bro M ws od CSS Border Radius er S ern up por t Supported Internet Explorer Supported Firefox Supported Opera Supported Webkit
  • 24. CSS Transition Transform
  • 25. CSS Transition Transform Demo
  • 26. Bro M ws od CSS Border Radius er S ern up por Transform t Supported Internet Explorer Supported Firefox Supported Opera Supported Webkit
  • 27. Bouncing Transitions Element Positioning
  • 28. Bouncing Transitions Element Positioning
  • 29. Bouncing Transitions Element Positioning
  • 30. Bouncing Transitions Element Positioning
  • 31. Bouncing Transitions Element Positioning
  • 32. Bouncing Transitions Element Positioning
  • 34. Bouncing Transitions Element Positioning GFW transition:4s;
  • 35. Bouncing Transitions Element Positioning cubic-bezier GFW transition:4s; 4s ease-in-out; transition-timing-function:cubic-bezier(0,1,1,0); transition: all
  • 36. Bouncing Transitions Element Positioning Demo http://cubic-bezier.com
  • 37. Bro M ws od Bouncing Transitions er S ern up cubic-bezier por t Since IE10 Internet Explorer Supported Firefox Supported Opera Supported (in nightly) Webkit
  • 38. Multiple Outlines Box-Shadow Spread
  • 39. Multiple Outlines Box-Shadow Spread box-shadow: 0 0 5px white; LOOK HERE o(O.O)o
  • 40. Multiple Outlines Box-Shadow Spread Demo LOOK HERE o(O.O)o
  • 41. Multiple Outlines Box-Shadow Spread box-shadow: 0 0 0 5px black, 0 0 0 10px gold, 0 0 0 20px black, 0 0 0 35px white; LOOK HERE o(O.O)o
  • 42. Bro M ws od Multiple Outlines er S ern up Multiple Outline Effect por t Supported Internet Explorer Supported Firefox Supported Opera Supported Webkit
  • 43. Click Through Object Pointer-Events
  • 44. Cyril
  • 45. Click Through Object Pointer-Events Tag Cloud http://demos.hacks.mozilla.org/openweb/pointer-events/
  • 46. Click Through Object Pointer-Events Tag Cloud background: -moz-linear-gradient(right center , #002233 pointer-events:none;0 transparent; 40px, rgba(0, 34, 51, 0)) repeat scroll 0 http://demos.hacks.mozilla.org/openweb/pointer-events/
  • 47. Click Through Object Pointer-Events Demo pointer-events:none; http://demos.hacks.mozilla.org/openweb/pointer-events/
  • 48. Click Through Object Pointer-Events Not Supported Internet Explorer Supported, Since 3.6 Firefox Not Supported Opera Supported Webkit
  • 49. Click Through Object Pointer-Events Javascript Workaround function noPointerEvents (element) { $(element).bind('click mouseover', function (evt) { this.style.display = 'none'; var x = evt.pageX, y = evt.pageY, under = document.elementFromPoint(x, y); this.style.display = ''; evt.stopPropagation(); evt.preventDefault(); $(under).trigger(evt.type); }); }
  • 52. Custom Input Design Fancy Checkbox / Radio
  • 53. Custom Input Design Fancy Checkbox / Radio css => :checked
  • 54. Bro M ws od Custom Input Design er S ern up css=> :checked por t Supported Internet Explorer Supported Firefox Supported Opera Supported Webkit
  • 55. Sequential Styling Sibling Count
  • 56. Sequential Styling Sibling Count css => :last-child :last-child
  • 57. Sequential Styling Sibling Count css => :nth-child :nth-child(2n+1)
  • 58. Sequential Styling Sibling Count css => :nth-child :nth-child(3n+1)
  • 59. Sequential Styling Sibling Count
  • 60. Bro M ws od Sequential Styling er S ern up css => selectors por t Supported Internet Explorer Supported Firefox Supported Opera Supported Webkit
  • 61. Background Patterns With Pure CSS
  • 62. Background Patterns With Pure CSS Linear-Gradient http://leaverou.me/css3patterns/#
  • 63. Bro M ws od Background Patterns er S ern up Linear-Gradient por t Supported since IE10 Internet Explorer Supported Firefox Supported (Radial gradients in v12) Opera Supported (Safari since 5.1) Webkit
  • 64. htt p:/ /ca sp erc . by me Th ank You !