ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
CSS3 & jQuery
                       for Designers

Tuesday, 3 April 12
Hello!



Tuesday, 3 April 12
What I¡¯ll be
                      teaching today


Tuesday, 3 April 12
Why this is
                      important to learn
                        ...and why you are awesomer
                           than other web designers




Tuesday, 3 April 12
How I¡¯ll be teaching
                          this class


Tuesday, 3 April 12
First of all...
                       HTML5?


Tuesday, 3 April 12
How to create a HTML5 site
                         in one line of code...




Tuesday, 3 April 12
<!DOCTYPE html>




Tuesday, 3 April 12
A collection of new
                      features for HTML


Tuesday, 3 April 12
HTML5¡¯s new features
                      ? New semantic tags, e.g. <nav>, <article>, <footer>
                      ? Audio and video capacity
                      ? Canvas
                      ? Geolocation
                      ? Drag and drop
                      ? History APIs
                      ? O?ine mode
                      ? Data storage and File APIs
Tuesday, 3 April 12
Do I reeeeally need to
                      know this stu? though?


Tuesday, 3 April 12
So, this CSS3 business.



Tuesday, 3 April 12
What you¡¯ll learn about CSS3

                      ? Colours
                                        ? Fonts
                      ? Text shadow
                                        ? Transforms
                      ? Border radius
                                        ? Transitions
                      ? Gradients
                                        ? Animation
                      ? Box shadow


Tuesday, 3 April 12
What you won¡¯t learn

                      ? Generated content   ? Masking
                      ? Multi-backgrounds   ? New measurement units
                      ? Image borders       ? Improved text flows
                      ? Background sizing   ? Multi column layouts
                      ? Reflections         ? Responsive design


Tuesday, 3 April 12
Beware:
                      Experimental Stu?


Tuesday, 3 April 12
-webkit-box-sizing:   border-box;
                         -moz-box-sizing:   border-box;
                          -ms-box-sizing:   border-box;
                           -o-box-sizing:   border-box;
                              box-sizing:   border-box;




Tuesday, 3 April 12
-webkit-box-sizing:   border-box;
                         -moz-box-sizing:   border-box;
                          -ms-box-sizing:   border-box;
                           -o-box-sizing:   border-box;
                              box-sizing:   border-box;




Tuesday, 3 April 12
-webkit-box-sizing: border-box;




Tuesday, 3 April 12
But don¡¯t do this on live
                       sites, okay???
                        Or someone may kill kittens.




Tuesday, 3 April 12
Let¡¯s begin!



Tuesday, 3 April 12
Colours



Tuesday, 3 April 12
Text shadow



Tuesday, 3 April 12
Box shadow



Tuesday, 3 April 12
Border radius



Tuesday, 3 April 12
Gradients



Tuesday, 3 April 12
Fonts



Tuesday, 3 April 12
Transitions



Tuesday, 3 April 12
Transforms



Tuesday, 3 April 12
Animations



Tuesday, 3 April 12
Putting it together



Tuesday, 3 April 12
A commerical break



Tuesday, 3 April 12
jQuery?



Tuesday, 3 April 12
jQuery stops you writing
                      a lot of code for simple things
                                all the time



Tuesday, 3 April 12
How to add a class in pure Javascript


Tuesday, 3 April 12
$(¡°a¡±).addClass(¡°hello¡±);




Tuesday, 3 April 12
What¡¯s in jQuery?


                      ? Selecting      ? Events
                      ? Attributes     ? Animation
                      ? Traversing     ? Ajax
                      ? Manipulation   ? JS Utilities



Tuesday, 3 April 12
Bo Selector.



Tuesday, 3 April 12
$
Tuesday, 3 April 12
Just a function.
                      The $ doesn¡¯t mean anything special.




Tuesday, 3 April 12
What does it mean?
                           Double rainbow?




Tuesday, 3 April 12
Uses CSS engine to pick
                      elements from the HTML



Tuesday, 3 April 12
#header ul li {
                          background: #eee;
                      }


                      $(¡°#header ul li¡±)




Tuesday, 3 April 12
#header ul li {
                          background: #eee;
                      }


                      $(¡°#header ul li¡±)




Tuesday, 3 April 12
#header ul > li a:nth-child(2n) {
                          background: #eee;
                      }

                      $(¡°#header ul > li a:nth-child(2n)¡±)




Tuesday, 3 April 12
$(¡°#header ul li¡±).addClass(¡°selected¡±);

                      $(¡°h1¡±).css(¡°color¡±, ¡°black¡±);

                      $(¡°img¡±).attr(¡°src¡±, ¡°cat.jpg¡±);




Tuesday, 3 April 12
$(¡°h1¡±).css(¡°color¡±, ¡°black¡±)
                             .addClass(¡°selected¡±)
                             .fadeIn(500);




Tuesday, 3 April 12
$(¡°³ó1¡±).±è²¹°ù±ð²Ô³Ù()
                             .next()
                             .find(¡°li¡±)
                             .addClass(¡°selected¡±);




Tuesday, 3 April 12
$(¡°h1¡±).on(¡°click¡±, function () {
                          // Do something when clicked
                      });




Tuesday, 3 April 12
Examples



Tuesday, 3 April 12
Tools worth using



Tuesday, 3 April 12
Modernizr
                      http://modernizr.com/




Tuesday, 3 April 12
body.rgba h1 {
                   color: rgba(...);   if (Modernizr.rgba) {
                 }                       // has rgba
                                       } else {
                 body.no-rgba h1 {       // no rgba
                   color: #000;        }
                 }




Tuesday, 3 April 12
SASS
                      http://sass-lang.com/




Tuesday, 3 April 12
h1 {             h1 {
                   color: #f00;     color: #f00;
                 }
                                      a {
                 h1 a {                 color: #000;
                   color: #000;       }
                 }                }




Tuesday, 3 April 12
Co?eescript
                      http://co?eescript.org/




Tuesday, 3 April 12
$(¡°h1¡±).on(¡°click¡±, function () {
                    $(this).addClass(¡°selected¡±);
                 })

                 $(¡°h1¡±).on ¡°click¡±, ->
                   $(@).addClass ¡°selected¡±




Tuesday, 3 April 12
Codekit
                      http://incident57.com/codekit/




Tuesday, 3 April 12
In closing



Tuesday, 3 April 12
Thanks!



Tuesday, 3 April 12
Email: rik@lomalogue.com
                      Twitter: @riklomas




Tuesday, 3 April 12
Ad

Recommended

Nyscate conference feedback
Nyscate conference feedback
buzarl11
?
Android 4.xÓë2.xµÄÇø±ð
Android 4.xÓë2.xµÄÇø±ð
shuaijie
?
Cbo a tour of the federal budget 4-26-13
Cbo a tour of the federal budget 4-26-13
tyantek
?
Budayasukubatak 110306194634-phpapp01
Budayasukubatak 110306194634-phpapp01
Agoes Rakbika
?
Werken met YouTube
Werken met YouTube
fberthier
?
Public Relations Nightmares -- Bibliography
Public Relations Nightmares -- Bibliography
Matthew Ciszek
?
The Open Web & The Broken TVs
The Open Web & The Broken TVs
lomalogue
?
Introduction to Web Programming
Introduction to Web Programming
Ynon Perek
?
Web Programming Intro
Web Programming Intro
Ynon Perek
?
03 css
03 css
Ynon Perek
?
Jquery Introduction
Jquery Introduction
cabbiepete
?
Object Oriented Css For High Performance Websites And Applications
Object Oriented Css For High Performance Websites And Applications
PerconaPerformance
?
Mastering CSS3 Selectors
Mastering CSS3 Selectors
Rachel Andrew
?
CSS3: nuevos selectores y pseudo elementos
CSS3: nuevos selectores y pseudo elementos
Carlos Solis
?
lecture2_public
lecture2_public
tutorialsruby
?
lecture2_public
lecture2_public
tutorialsruby
?
Html5 intro
Html5 intro
Ynon Perek
?
Mansoura University CSED & Nozom web development sprint
Mansoura University CSED & Nozom web development sprint
Al Sayed Gamal
?
Introduction of Html/css/js
Introduction of Html/css/js
Knoldus Inc.
?
It's the Little Things
It's the Little Things
Paul Armstrong
?
Cutting Edge CSS3 @ WebExpo Tour 2010
Cutting Edge CSS3 @ WebExpo Tour 2010
Zi Bin Cheah
?
CSS3 now
CSS3 now
Johan Ronsse
?
Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
Tadpole Collective
?
CSS 3
CSS 3
Doncho Minkov
?
Jquery
Jquery
PaRa Vaishnav
?
Using jQuery to Extend CSS
Using jQuery to Extend CSS
Chris Coyier
?
HTML5 Pearson preso
HTML5 Pearson preso
Chris Mills
?
Fast Mobile UIs
Fast Mobile UIs
Wooga
?
Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
?
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
?

More Related Content

Similar to CSS3 and jQuery for Designers (20)

Web Programming Intro
Web Programming Intro
Ynon Perek
?
03 css
03 css
Ynon Perek
?
Jquery Introduction
Jquery Introduction
cabbiepete
?
Object Oriented Css For High Performance Websites And Applications
Object Oriented Css For High Performance Websites And Applications
PerconaPerformance
?
Mastering CSS3 Selectors
Mastering CSS3 Selectors
Rachel Andrew
?
CSS3: nuevos selectores y pseudo elementos
CSS3: nuevos selectores y pseudo elementos
Carlos Solis
?
lecture2_public
lecture2_public
tutorialsruby
?
lecture2_public
lecture2_public
tutorialsruby
?
Html5 intro
Html5 intro
Ynon Perek
?
Mansoura University CSED & Nozom web development sprint
Mansoura University CSED & Nozom web development sprint
Al Sayed Gamal
?
Introduction of Html/css/js
Introduction of Html/css/js
Knoldus Inc.
?
It's the Little Things
It's the Little Things
Paul Armstrong
?
Cutting Edge CSS3 @ WebExpo Tour 2010
Cutting Edge CSS3 @ WebExpo Tour 2010
Zi Bin Cheah
?
CSS3 now
CSS3 now
Johan Ronsse
?
Intro to HTML 5 / CSS 3
Intro to HTML 5 / CSS 3
Tadpole Collective
?
CSS 3
CSS 3
Doncho Minkov
?
Jquery
Jquery
PaRa Vaishnav
?
Using jQuery to Extend CSS
Using jQuery to Extend CSS
Chris Coyier
?
HTML5 Pearson preso
HTML5 Pearson preso
Chris Mills
?
Fast Mobile UIs
Fast Mobile UIs
Wooga
?
Web Programming Intro
Web Programming Intro
Ynon Perek
?
Jquery Introduction
Jquery Introduction
cabbiepete
?
Object Oriented Css For High Performance Websites And Applications
Object Oriented Css For High Performance Websites And Applications
PerconaPerformance
?
Mastering CSS3 Selectors
Mastering CSS3 Selectors
Rachel Andrew
?
CSS3: nuevos selectores y pseudo elementos
CSS3: nuevos selectores y pseudo elementos
Carlos Solis
?
Mansoura University CSED & Nozom web development sprint
Mansoura University CSED & Nozom web development sprint
Al Sayed Gamal
?
Introduction of Html/css/js
Introduction of Html/css/js
Knoldus Inc.
?
Cutting Edge CSS3 @ WebExpo Tour 2010
Cutting Edge CSS3 @ WebExpo Tour 2010
Zi Bin Cheah
?
Using jQuery to Extend CSS
Using jQuery to Extend CSS
Chris Coyier
?
HTML5 Pearson preso
HTML5 Pearson preso
Chris Mills
?
Fast Mobile UIs
Fast Mobile UIs
Wooga
?

Recently uploaded (20)

Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
?
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
?
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
?
June Patch Tuesday
June Patch Tuesday
Ivanti
?
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
?
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
?
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
?
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
?
¡°Why It¡¯s Critical to Have an Integrated Development Methodology for Edge AI,...
¡°Why It¡¯s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
?
AI vs Human Writing: Can You Tell the Difference?
AI vs Human Writing: Can You Tell the Difference?
Shashi Sathyanarayana, Ph.D
?
¡°Key Requirements to Successfully Implement Generative AI in Edge Devices¡ªOpt...
¡°Key Requirements to Successfully Implement Generative AI in Edge Devices¡ªOpt...
Edge AI and Vision Alliance
?
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
?
High Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdf
Safe Software
?
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
?
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
?
Data Validation and System Interoperability
Data Validation and System Interoperability
Safe Software
?
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
?
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
?
¡°From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
¡°From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
Edge AI and Vision Alliance
?
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
?
Murdledescargadarkweb.pdfvolumen1 100 elementary
Murdledescargadarkweb.pdfvolumen1 100 elementary
JorgeSemperteguiMont
?
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
Can We Use Rust to Develop Extensions for PostgreSQL? (POSETTE: An Event for ...
NTT DATA Technology & Innovation
?
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance Seminar State of Passkeys.pptx
FIDO Alliance
?
June Patch Tuesday
June Patch Tuesday
Ivanti
?
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
?
Mastering AI Workflows with FME - Peak of Data & AI 2025
Mastering AI Workflows with FME - Peak of Data & AI 2025
Safe Software
?
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
?
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
?
¡°Why It¡¯s Critical to Have an Integrated Development Methodology for Edge AI,...
¡°Why It¡¯s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
?
¡°Key Requirements to Successfully Implement Generative AI in Edge Devices¡ªOpt...
¡°Key Requirements to Successfully Implement Generative AI in Edge Devices¡ªOpt...
Edge AI and Vision Alliance
?
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Floods in Valencia: Two FME-Powered Stories of Data Resilience
Safe Software
?
High Availability On-Premises FME Flow.pdf
High Availability On-Premises FME Flow.pdf
Safe Software
?
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
?
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
?
Data Validation and System Interoperability
Data Validation and System Interoperability
Safe Software
?
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
?
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
?
¡°From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
¡°From Enterprise to Makers: Driving Vision AI Innovation at the Extreme Edge,...
Edge AI and Vision Alliance
?
Bridging the divide: A conversation on tariffs today in the book industry - T...
Bridging the divide: A conversation on tariffs today in the book industry - T...
BookNet Canada
?
Ad

CSS3 and jQuery for Designers