css level 3 - atlas institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf ·...

23
CSS Level 3

Upload: others

Post on 25-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

CSS Level 3

Page 2: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

World Wide Web Consortium (W3C)

international community that develops open standards to ensure the long-term growth of the Web.

Page 3: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

w3c stagesworking draft

last call

candidate recommendation

proposed recommendation

published recommendation

Page 4: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

html timeline 1995 - html 2.0

1997 - html 3.2

1998 - html 4.0

2000 - xhtml 1.0

2010 - html 5.0

Page 5: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

html5 timeline

Page 6: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

css timeline1996 - css 1.0 recommendation

2000 - css 2.0 recommendation

2004 - css 2.1 (started)

2005 - css 2.1 working draft

2007 - css 2.1 candidate recommendation

2011 - css 2.1 recommendation

Page 7: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

rapid evolution of the web

standards process unwieldy

constantly changing technology

changes in how websites are developed and consumed

mobile web

online applications (API)

Page 8: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

there is no spoon

or css 3.0 specification

Page 9: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

so what is css3

new css mark up with level 3 label

based on or an extension of 2.1

it is now just “css” but split into individual...

Page 10: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

modulesfuture editions of css will update existing modules or add new ones

evolve independently of each other

selectors are defined in one module

background and borders in another

easier to edit or add modules based on current priorities and needs

Page 11: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline
Page 12: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

css level 3 border radius

box shadow

text shadow

rgba

@fontface

multiple columns

selectors

box resize

box sizing

outline

transitions

transform

gradients

Page 13: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

vendor prefixesadd support for new CSS features before those features are fully supported in all browsers

-webkit- = chrome, safari, android, ios

-moz- = firefox

-o- = opera

-ms- = microsoft explorer

Page 15: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

http://css3generator.com/

Page 16: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

pre-processorscss animation

vendor prefixes

can be auto-generated with pre-processors

sass

Page 17: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

updated updated css reset

*, *:before, *:after { margin: 0;padding: 0; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

Page 18: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

css transitionstransition-property

transition-duration

transition-timing-function

transition: all 500ms ease-in-out; (short-hand)

Page 19: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

transition-property all, background, color, height, width, outline…

just use “all”

Page 20: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

transition-duration seconds = s

milliseconds = ms

1000ms = 1s

Page 21: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

transition-timing-function

ease > slow start, then fast, then end slowly (default)

linear > same speed from start to end

ease-in > slow start

ease-out > slow end

ease-in-out > slow start and end

cubic-bezier(n,n,n,n) > define your own values in a cubic-bezier function

Page 22: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

cubic bezier transition

http://cubic-bezier.com/

Page 23: CSS Level 3 - ATLAS Institutecreative.colorado.edu/atlas2200/pdf/week10-tech-css3.pdf · 2017-10-31 · CSS Level 3. World Wide Web Consortium (W3C) ... html5 timeline. css timeline

transition codeadd transition to initial state

make changes to hover state