SlideShare 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
                      • Offline mode
                      • Data storage and File APIs
Tuesday, 3 April 12
Do I reeeeally need to
                      know this stuff 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 Stuff


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
$(“h1”).parent()
                             .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
Coffeescript
                      http://coffeescript.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

More Related Content

DOCX
Nyscate conference feedback
KEY
Android 4.x与2.x的区别
PDF
Cbo a tour of the federal budget 4-26-13
PPT
Budayasukubatak 110306194634-phpapp01
PPT
Werken met YouTube
DOCX
Public Relations Nightmares -- Bibliography
KEY
The Open Web & The Broken TVs
PDF
How diazo works
Nyscate conference feedback
Android 4.x与2.x的区别
Cbo a tour of the federal budget 4-26-13
Budayasukubatak 110306194634-phpapp01
Werken met YouTube
Public Relations Nightmares -- Bibliography
The Open Web & The Broken TVs
How diazo works

Similar to CSS3 and jQuery for Designers (16)

PDF
Symfony2 and MongoDB - MidwestPHP 2013
PDF
Ruby 2.0 / Rails 4.0, A selection of new features.
PDF
История одной кнопки или b-form-button.css и b-form-button.js (Елена Глухова,...
PDF
D3.js capita selecta
PDF
Caching tips
PDF
SassConf: It takes a village to raise a stylesheet
PDF
D3 Rickshaw and Backbone in 50 minutes
PDF
Scala - Java2Days Sofia
PDF
Introduction to Twig
PDF
Introduction to NoSQL with MongoDB
PDF
Testing mysql creatively in a sandbox
PDF
Mongo db php_shaken_not_stirred_joomlafrappe
PDF
Kotlin: Incompetence * Motivation = Innovation?
PDF
Basics of Metaprogramming in Ruby
PDF
Extreme Mobile App Performance: Native to Web
PDF
Presentation elag 2013
Symfony2 and MongoDB - MidwestPHP 2013
Ruby 2.0 / Rails 4.0, A selection of new features.
История одной кнопки или b-form-button.css и b-form-button.js (Елена Глухова,...
D3.js capita selecta
Caching tips
SassConf: It takes a village to raise a stylesheet
D3 Rickshaw and Backbone in 50 minutes
Scala - Java2Days Sofia
Introduction to Twig
Introduction to NoSQL with MongoDB
Testing mysql creatively in a sandbox
Mongo db php_shaken_not_stirred_joomlafrappe
Kotlin: Incompetence * Motivation = Innovation?
Basics of Metaprogramming in Ruby
Extreme Mobile App Performance: Native to Web
Presentation elag 2013
Ad

Recently uploaded (20)

PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Web App vs Mobile App What Should You Build First.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPTX
observCloud-Native Containerability and monitoring.pptx
PDF
project resource management chapter-09.pdf
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
Modernising the Digital Integration Hub
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
PDF
August Patch Tuesday
PPTX
Tartificialntelligence_presentation.pptx
PDF
STKI Israel Market Study 2025 version august
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPTX
The various Industrial Revolutions .pptx
PDF
Getting started with AI Agents and Multi-Agent Systems
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
Enhancing emotion recognition model for a student engagement use case through...
Web App vs Mobile App What Should You Build First.pdf
Zenith AI: Advanced Artificial Intelligence
Final SEM Unit 1 for mit wpu at pune .pptx
observCloud-Native Containerability and monitoring.pptx
project resource management chapter-09.pdf
A comparative study of natural language inference in Swahili using monolingua...
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Modernising the Digital Integration Hub
DP Operators-handbook-extract for the Mautical Institute
2021 HotChips TSMC Packaging Technologies for Chiplets and 3D_0819 publish_pu...
August Patch Tuesday
Tartificialntelligence_presentation.pptx
STKI Israel Market Study 2025 version august
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
The various Industrial Revolutions .pptx
Getting started with AI Agents and Multi-Agent Systems
Module 1.ppt Iot fundamentals and Architecture
1 - Historical Antecedents, Social Consideration.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Ad

CSS3 and jQuery for Designers