SlideShare une entreprise Scribd logo
1  sur  32
Télécharger pour lire hors ligne
 
               


Saturday, January 28, 2012
Bling with CSS3:
                             Effect and Animations


                              :
                               |  |  




Saturday, January 28, 2012
Early internet:
                              flaming logos
                                    FTW!!!!!
Saturday, January 28, 2012
Flames, Really?!
  • , .
  •      
  •  
  •  - 



                                    PRATIK PATEL | CTO
Saturday, January 28, 2012
DEMO:
                        FLAMES W/
                           CSS
                               PRATIK PATEL | CTO
Saturday, January 28, 2012
CSS3 magic
  • -   
  •     
  •   
  •     
  •     -
     


                                    PRATIK PATEL | CTO
Saturday, January 28, 2012
-
  ["0 0em 0em #7C0003", "0 -0.05em 0.05em #7C0003", "0 -0.1em 0.1em
  #7C0003", "0 -0.2em 0.2em #C51105", "0 -0.25em 0.25em #C51105", "0
  -0.3em 0.3em #C51105", "0 -0.35em 0.35em #DC3B06", ...




                                                      PRATIK PATEL | CTO
Saturday, January 28, 2012

  $spans = $(this).find('span');
  setInterval(function () {$spans.each(burn);}, 200);




                                                        PRATIK PATEL | CTO
Saturday, January 28, 2012
 
               while (c < colors.length)
          {
               // random height
               s = 2 + Math.round(Math.random() * 1);
               while (s--)
               {
                 // horz vert blur color
                 shadow = '0 ' + h + 'em ' + -h + 'em ' + colors[c];
                 // multiple shadows are supported!
                 textShadows.push(shadow);
                 // height of flame
                 h -= 0.05;
               }
               c++;
     }
  $(this).css({textShadow: textShadows.join(', ')});


                                                              PRATIK PATEL | CTO
Saturday, January 28, 2012
Hey isn’t this a preso on CSS3?
             
        




                                    PRATIK PATEL | CTO
Saturday, January 28, 2012
“THE BEST TRICK ARE THE
                     OLD TRICKS.”
                    "ANONYMOUS

                   “NEW NEEDS NEED NEW
                        TECHNIQUES.”
                     "JACKSON POLLOCK
                                  PRATIK PATEL | CTO
Saturday, January 28, 2012
CSS3
  •                     
                                  




  •   
  •     
  •  ,  .   
    -  .
  • ,   __  

                                                                         PRATIK PATEL | CTO
Saturday, January 28, 2012
   
       1. 
       2. 
       3. 
       4. 
       5. 



                             PRATIK PATEL | CTO
Saturday, January 28, 2012
Using CSS3 for
                             User Interfaces
Saturday, January 28, 2012
Animations
  •  
  •   
  •  - 




                                    PRATIK PATEL | CTO
Saturday, January 28, 2012
DEMO:
              FLASHCARDS

                             PRATIK PATEL | CTO
Saturday, January 28, 2012
Webkit extensions
  •--  :
  • ---
  •---
  •---
  •----
  --: <> <> <_> <> , ...;


                                                                       PRATIK PATEL | CTO
Saturday, January 28, 2012
-
          #cf4 {
          	 position:relative;
          	 margin:0 auto;
          	 -webkit-tap-highlight-color:   rgba(0, 0, 0, 0);	
          	 -webkit-transition: all 0.2s   ease-in-out;
          }
          #cf4 div {
          	 position:absolute;
          	 -webkit-transition: all 0.5s   ease-in-out;
          	 -webkit-tap-highlight-color:   rgba(0, 0, 0, 0);	
          }




                                                            PRATIK PATEL | CTO
Saturday, January 28, 2012
  
            var startXPosition = 0;
            front.addEventListener('mousedown', function(data)
          	       {
                  startXPosition = data.x;
          	   });

            front.addEventListener('mouseup', function(data)
          	 {
                  	 processEnd(data.x);
          	 });

             function processEnd(finalXPosition) {
                  if (startXPosition > finalXPosition+5) {
                      // left swipe
                      nextCard();


                                                             PRATIK PATEL | CTO
Saturday, January 28, 2012
  
               function slideLeft() {
               	console.log('slideLeft');
                  var card = document.getElementById("cf4");

             	 card.style["left"] = "700px";
             	 	 	 setTimeout(function () {
                              card.style["top"] = "-1000px";
                          }, 400);
             	 	 	 setTimeout(function () {
                              card.style["left"] = "-700px";
                          }, 500);
                      setTimeout(function () {
                             card.style["top"] = "0px";
                          }, 600);
            }
          	 card.style["left"] = "0px";

                                                               PRATIK PATEL | CTO
Saturday, January 28, 2012
transition property
  • |  | <>
  • 
  • 
  •  -- 
  •   


                                 PRATIK PATEL | CTO
Saturday, January 28, 2012
Webkit exts in JS
  •         
  
  var front = document.getElementById("front");
  front.style["WebkitTransform"] = "scale
  (0,0)";

  •      -   
  
  •    :
  . += " ";
                                      PRATIK PATEL | CTO
Saturday, January 28, 2012
-
nction flipFront()

var front = document.getElementById("front");
var back = document.getElementById("back");

 front.style["WebkitTransform"] = "scale(0,0)";
// reseting transition settings is quirky
// front.style["WebkitTransition"] = "all 1s ease-in-out;";

back.style["WebkitTransform"] = "scale(1,1)";




                                                      PRATIK PATEL | CTO
Saturday, January 28, 2012
transform
  • 
  • 
  • 
  •
  •
  •
                             PRATIK PATEL | CTO
Saturday, January 28, 2012

  .rotatedY{
    -webkit-transform: rotateY(30deg);
  }

  .rotatedX{
    -webkit-transform: rotateX(30deg);
  }

  .translated{
    -webkit-transform: translate(540px,200px);
  }




                                                 PRATIK PATEL | CTO
Saturday, January 28, 2012
Web to Mobile
  •  :
  • : , 
  • : , 




                              PRATIK PATEL | CTO
Saturday, January 28, 2012
DEMO:
             RUNNING ON
                IPAD
                             PRATIK PATEL | CTO
Saturday, January 28, 2012
Why doesn’t the
          next & previous
          gesture work on the
          iPad?

Saturday, January 28, 2012
More CSS3
  •  
  •  
  •  
  •  



                             PRATIK PATEL | CTO
Saturday, January 28, 2012
DEMO: MORE
               BLING

                             PRATIK PATEL | CTO
Saturday, January 28, 2012
Q&A
Saturday, January 28, 2012
AU REVOIR
                                  PRATIK PATEL
                                      @PRPATEL
                                     PRPATEL@TRIPLINGO.COM




Saturday, January 28, 2012

Contenu connexe

En vedette (9)

Say Caldwell
Say CaldwellSay Caldwell
Say Caldwell
 
Design Portfolio
Design PortfolioDesign Portfolio
Design Portfolio
 
May 08
May 08May 08
May 08
 
Digital Techniques
Digital TechniquesDigital Techniques
Digital Techniques
 
Dragons Den - Sex Education Pitch
Dragons Den - Sex Education PitchDragons Den - Sex Education Pitch
Dragons Den - Sex Education Pitch
 
Earth Day - Dia de la Tierra
Earth Day - Dia de la TierraEarth Day - Dia de la Tierra
Earth Day - Dia de la Tierra
 
Graphic Art portfolio
Graphic Art portfolioGraphic Art portfolio
Graphic Art portfolio
 
Wanneer scrum versus waterval g.j.hoge
Wanneer scrum versus waterval   g.j.hogeWanneer scrum versus waterval   g.j.hoge
Wanneer scrum versus waterval g.j.hoge
 
Nazi Germany Theatre
Nazi Germany TheatreNazi Germany Theatre
Nazi Germany Theatre
 

Similaire à Bling css3

Matúš Cimerman: Building AI data pipelines using PySpark, PyData Bratislava M...
Matúš Cimerman: Building AI data pipelines using PySpark, PyData Bratislava M...Matúš Cimerman: Building AI data pipelines using PySpark, PyData Bratislava M...
Matúš Cimerman: Building AI data pipelines using PySpark, PyData Bratislava M...
GapData Institute
 
5 docker data_etl and visualization_hands_on
5 docker data_etl and visualization_hands_on5 docker data_etl and visualization_hands_on
5 docker data_etl and visualization_hands_on
FEG
 
When Webform and Feeds Aren't Enough
When Webform and Feeds Aren't EnoughWhen Webform and Feeds Aren't Enough
When Webform and Feeds Aren't Enough
Forum One
 
springdatajpatwjug-120527215242-phpapp02.pdf
springdatajpatwjug-120527215242-phpapp02.pdfspringdatajpatwjug-120527215242-phpapp02.pdf
springdatajpatwjug-120527215242-phpapp02.pdf
ssuser0562f1
 
Introduction to Data Modeling with Apache Cassandra
Introduction to Data Modeling with Apache CassandraIntroduction to Data Modeling with Apache Cassandra
Introduction to Data Modeling with Apache Cassandra
DataStax Academy
 

Similaire à Bling css3 (20)

Working with Data and Titanium
Working with Data and TitaniumWorking with Data and Titanium
Working with Data and Titanium
 
A Primer on Web Components in APEX
A Primer on Web Components in APEXA Primer on Web Components in APEX
A Primer on Web Components in APEX
 
Real
RealReal
Real
 
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
Microsoft SQL Server Analysis Services (SSAS) - A Practical Introduction
 
O365Engage17 - Mastering power shell with office 365
O365Engage17 - Mastering power shell with office 365O365Engage17 - Mastering power shell with office 365
O365Engage17 - Mastering power shell with office 365
 
Testing ASP.NET - Progressive.NET
Testing ASP.NET - Progressive.NETTesting ASP.NET - Progressive.NET
Testing ASP.NET - Progressive.NET
 
Matúš Cimerman: Building AI data pipelines using PySpark, PyData Bratislava M...
Matúš Cimerman: Building AI data pipelines using PySpark, PyData Bratislava M...Matúš Cimerman: Building AI data pipelines using PySpark, PyData Bratislava M...
Matúš Cimerman: Building AI data pipelines using PySpark, PyData Bratislava M...
 
How You Convince Your Manager To Adopt Scala.js in Production
How You Convince Your Manager To Adopt Scala.js in ProductionHow You Convince Your Manager To Adopt Scala.js in Production
How You Convince Your Manager To Adopt Scala.js in Production
 
5 docker data_etl and visualization_hands_on
5 docker data_etl and visualization_hands_on5 docker data_etl and visualization_hands_on
5 docker data_etl and visualization_hands_on
 
[edUi] HTML5 Workshop
[edUi] HTML5 Workshop[edUi] HTML5 Workshop
[edUi] HTML5 Workshop
 
When Webform and Feeds Aren't Enough
When Webform and Feeds Aren't EnoughWhen Webform and Feeds Aren't Enough
When Webform and Feeds Aren't Enough
 
springdatajpatwjug-120527215242-phpapp02.pdf
springdatajpatwjug-120527215242-phpapp02.pdfspringdatajpatwjug-120527215242-phpapp02.pdf
springdatajpatwjug-120527215242-phpapp02.pdf
 
The databases in SSDT: A work with project and best practices
The databases in SSDT: A work with project and best practicesThe databases in SSDT: A work with project and best practices
The databases in SSDT: A work with project and best practices
 
[OSC 2020 Online/Nagoya] MySQLドキュメントストア
[OSC 2020 Online/Nagoya] MySQLドキュメントストア[OSC 2020 Online/Nagoya] MySQLドキュメントストア
[OSC 2020 Online/Nagoya] MySQLドキュメントストア
 
Introduction to Data Modeling with Apache Cassandra
Introduction to Data Modeling with Apache CassandraIntroduction to Data Modeling with Apache Cassandra
Introduction to Data Modeling with Apache Cassandra
 
PDMS Professional
PDMS ProfessionalPDMS Professional
PDMS Professional
 
Bkbiet day2 & 3
Bkbiet day2 & 3Bkbiet day2 & 3
Bkbiet day2 & 3
 
Users' Data Security in iOS Applications
Users' Data Security in iOS ApplicationsUsers' Data Security in iOS Applications
Users' Data Security in iOS Applications
 
Mstr meetup
Mstr meetupMstr meetup
Mstr meetup
 
[heweb11] HTML5 Makeover
[heweb11] HTML5 Makeover[heweb11] HTML5 Makeover
[heweb11] HTML5 Makeover
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Dernier (20)

Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 

Bling css3

  • 1.    Saturday, January 28, 2012
  • 2. Bling with CSS3: Effect and Animations  :   |  |   Saturday, January 28, 2012
  • 3. Early internet: flaming logos FTW!!!!! Saturday, January 28, 2012
  • 4. Flames, Really?! • , . •       •   •  -  PRATIK PATEL | CTO Saturday, January 28, 2012
  • 5. DEMO: FLAMES W/ CSS PRATIK PATEL | CTO Saturday, January 28, 2012
  • 6. CSS3 magic • -    •      •    •      •     -     PRATIK PATEL | CTO Saturday, January 28, 2012
  • 7. - ["0 0em 0em #7C0003", "0 -0.05em 0.05em #7C0003", "0 -0.1em 0.1em #7C0003", "0 -0.2em 0.2em #C51105", "0 -0.25em 0.25em #C51105", "0 -0.3em 0.3em #C51105", "0 -0.35em 0.35em #DC3B06", ... PRATIK PATEL | CTO Saturday, January 28, 2012
  • 8.  $spans = $(this).find('span'); setInterval(function () {$spans.each(burn);}, 200); PRATIK PATEL | CTO Saturday, January 28, 2012
  • 9.   while (c < colors.length) { // random height s = 2 + Math.round(Math.random() * 1); while (s--) { // horz vert blur color shadow = '0 ' + h + 'em ' + -h + 'em ' + colors[c]; // multiple shadows are supported! textShadows.push(shadow); // height of flame h -= 0.05; } c++; } $(this).css({textShadow: textShadows.join(', ')}); PRATIK PATEL | CTO Saturday, January 28, 2012
  • 10. Hey isn’t this a preso on CSS3?          PRATIK PATEL | CTO Saturday, January 28, 2012
  • 11. “THE BEST TRICK ARE THE OLD TRICKS.” "ANONYMOUS “NEW NEEDS NEED NEW TECHNIQUES.” "JACKSON POLLOCK PRATIK PATEL | CTO Saturday, January 28, 2012
  • 12. CSS3 •            •    •      •  ,  .      -  . • ,   __   PRATIK PATEL | CTO Saturday, January 28, 2012
  • 13.     1.  2.  3.  4.  5.  PRATIK PATEL | CTO Saturday, January 28, 2012
  • 14. Using CSS3 for User Interfaces Saturday, January 28, 2012
  • 15. Animations •   •    •  -  PRATIK PATEL | CTO Saturday, January 28, 2012
  • 16. DEMO: FLASHCARDS PRATIK PATEL | CTO Saturday, January 28, 2012
  • 17. Webkit extensions •--  : • --- •--- •--- •---- --: <> <> <_> <> , ...; PRATIK PATEL | CTO Saturday, January 28, 2012
  • 18. - #cf4 { position:relative; margin:0 auto; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); -webkit-transition: all 0.2s ease-in-out; } #cf4 div { position:absolute; -webkit-transition: all 0.5s ease-in-out; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } PRATIK PATEL | CTO Saturday, January 28, 2012
  • 19.    var startXPosition = 0; front.addEventListener('mousedown', function(data) { startXPosition = data.x; }); front.addEventListener('mouseup', function(data) { processEnd(data.x); }); function processEnd(finalXPosition) { if (startXPosition > finalXPosition+5) { // left swipe nextCard(); PRATIK PATEL | CTO Saturday, January 28, 2012
  • 20.    function slideLeft() { console.log('slideLeft'); var card = document.getElementById("cf4"); card.style["left"] = "700px"; setTimeout(function () { card.style["top"] = "-1000px"; }, 400); setTimeout(function () { card.style["left"] = "-700px"; }, 500); setTimeout(function () { card.style["top"] = "0px"; }, 600); } card.style["left"] = "0px"; PRATIK PATEL | CTO Saturday, January 28, 2012
  • 21. transition property • |  | <> •  •  •  --  •    PRATIK PATEL | CTO Saturday, January 28, 2012
  • 22. Webkit exts in JS •           var front = document.getElementById("front"); front.style["WebkitTransform"] = "scale (0,0)"; •      -     •    : . += " "; PRATIK PATEL | CTO Saturday, January 28, 2012
  • 23. - nction flipFront() var front = document.getElementById("front"); var back = document.getElementById("back"); front.style["WebkitTransform"] = "scale(0,0)"; // reseting transition settings is quirky // front.style["WebkitTransition"] = "all 1s ease-in-out;"; back.style["WebkitTransform"] = "scale(1,1)"; PRATIK PATEL | CTO Saturday, January 28, 2012
  • 24. transform •  •  •  • • • PRATIK PATEL | CTO Saturday, January 28, 2012
  • 25.  .rotatedY{ -webkit-transform: rotateY(30deg); } .rotatedX{ -webkit-transform: rotateX(30deg); } .translated{ -webkit-transform: translate(540px,200px); } PRATIK PATEL | CTO Saturday, January 28, 2012
  • 26. Web to Mobile •  : • : ,  • : ,  PRATIK PATEL | CTO Saturday, January 28, 2012
  • 27. DEMO: RUNNING ON IPAD PRATIK PATEL | CTO Saturday, January 28, 2012
  • 28. Why doesn’t the next & previous gesture work on the iPad? Saturday, January 28, 2012
  • 29. More CSS3 •   •   •   •   PRATIK PATEL | CTO Saturday, January 28, 2012
  • 30. DEMO: MORE BLING PRATIK PATEL | CTO Saturday, January 28, 2012
  • 32. AU REVOIR PRATIK PATEL @PRPATEL PRPATEL@TRIPLINGO.COM Saturday, January 28, 2012