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

Similar to CSS3 and jQuery for Designers

Symfony2 and MongoDB - MidwestPHP 2013
Symfony2 and MongoDB - MidwestPHP 2013   Symfony2 and MongoDB - MidwestPHP 2013
Symfony2 and MongoDB - MidwestPHP 2013
Pablo Godel
 
Ruby 2.0 / Rails 4.0, A selection of new features.
Ruby 2.0 / Rails 4.0, A selection of new features.Ruby 2.0 / Rails 4.0, A selection of new features.
Ruby 2.0 / Rails 4.0, A selection of new features.
lrdesign
 
История одной кнопки или b-form-button.css и b-form-button.js (Елена Глухова,...
История одной кнопки или b-form-button.css и b-form-button.js (Елена Глухова,...История одной кнопки или b-form-button.css и b-form-button.js (Елена Глухова,...
История одной кнопки или b-form-button.css и b-form-button.js (Елена Глухова,...Ontico
 
D3.js capita selecta
D3.js capita selectaD3.js capita selecta
D3.js capita selectaJoris Klerkx
 
Caching tips
Caching tipsCaching tips
Caching tips
Leonardo Soto
 
SassConf: It takes a village to raise a stylesheet
SassConf: It takes a village to raise a stylesheetSassConf: It takes a village to raise a stylesheet
SassConf: It takes a village to raise a stylesheet
chriseppstein
 
D3 Rickshaw and Backbone in 50 minutes
D3 Rickshaw and Backbone in 50 minutesD3 Rickshaw and Backbone in 50 minutes
D3 Rickshaw and Backbone in 50 minutes
Richard Powell
 
Scala - Java2Days Sofia
Scala - Java2Days SofiaScala - Java2Days Sofia
Scala - Java2Days Sofia
Manuel Bernhardt
 
Introduction to Twig
Introduction to TwigIntroduction to Twig
Introduction to Twigmarkstory
 
Introduction to NoSQL with MongoDB
Introduction to NoSQL with MongoDBIntroduction to NoSQL with MongoDB
Introduction to NoSQL with MongoDB
Hector Correa
 
Testing mysql creatively in a sandbox
Testing mysql creatively in a sandboxTesting mysql creatively in a sandbox
Testing mysql creatively in a sandbox
Giuseppe Maxia
 
Mongo db php_shaken_not_stirred_joomlafrappe
Mongo db php_shaken_not_stirred_joomlafrappeMongo db php_shaken_not_stirred_joomlafrappe
Mongo db php_shaken_not_stirred_joomlafrappe
Spyros Passas
 
Kotlin: Incompetence * Motivation = Innovation?
Kotlin: Incompetence * Motivation = Innovation?Kotlin: Incompetence * Motivation = Innovation?
Kotlin: Incompetence * Motivation = Innovation?Andrey Breslav
 
Basics of Metaprogramming in Ruby
Basics of Metaprogramming in RubyBasics of Metaprogramming in Ruby
Basics of Metaprogramming in Ruby
Digital Natives
 
Extreme Mobile App Performance: Native to Web
Extreme Mobile App Performance: Native to WebExtreme Mobile App Performance: Native to Web
Extreme Mobile App Performance: Native to Webjackysencha
 
Presentation elag 2013
Presentation elag 2013Presentation elag 2013
Presentation elag 2013geckomarma
 

Similar to CSS3 and jQuery for Designers (16)

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

Recently uploaded

State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
Cheryl Hung
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
UiPathCommunity
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 

Recently uploaded (20)

State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 

CSS3 and jQuery for Designers