SlideShare une entreprise Scribd logo
1  sur  15
CSS3 Animations &
Transitions with PhoneGap
        – Mark A R Smith 11/04/13
             @mark_a_r_smith
           mark@mymittens.co.uk
CSS3
•   Greatly improved set of tools for modern browsers

    –   Selectors
    –   Box Model
    –   Backgrounds and Borders
    –   Text Effects
    –   2D/3D Transformations
    –   Animations
    –   Multiple Column Layout
    –   User Interface

•   Hardware acceleration!!!
PhoneGap/Cordova
•   All platforms have a WebView (iOS/Android/Windows8/etc)

•   PhoneGap allows rendering to such a WebView with hooks to
    hardware (i.e. Compass, vibration, Camera)
What we want to do…
What we want to do…
What we want to do…
•   Build an app. to assist with remembering physio. exercises.

    – User Story 1: Display exercise to user
    – User Story 2: Display exercises to user via mobile
    …
    – User Story 3: Display specific exercises to user via mobile




                                      …let’s write some markup…
…but first some tools!
•   Android ADT bundle
     – http://developer.android.com/sdk/index.html

•   Applaud
     – http://www.mobiledevelopersolutions.com/home/start/startdet
       ails



•   (Sencha SDK/SenchaCMD)
     – http://www.sencha.com/products/sencha-cmd/download
     – http://www.sencha.com/products/touch/download/
Android ADT Bundle
•   Includes…
     – A code editor (eclipse) preconfigured with the Android
       Developer Tools (code highlighting, intelli-sense, build
       tools)
     – SDK tools. The engine to drive this stuff
     – Emulator (slow as shit – plug in!)
Applaud
•   Automates creation of PhoneGap project for Android

•   Quite out of date (uses PhoneGap 1.9, 2.6 is latest)

•   Can point to later API’s

•   Can include other API’s straight into project (Jquery, etc)

•   Makes creating a new app. completely painless
Sencha Touch
•   Just what I’m using (great application level JS engine)

•   You could use JQuery Mobile, or just straight HTML
Back to Physio.
•   Simple “Hello World”

•   User Story: Display exercise to user
     – Task 1: create HTML to display exercise 1
     – Task 2: display exercise 1 on mobile device




                              …now let’s really do some markup…
CSS3 Transitions
•   Doing nothing different, but does it with a cool animation
    effect.

    h1{
          font-size:26px;
          transition: font-size 5s;
    }

    h1:hover{
        font-size: 200px;
    }




                                      …now let’s do some markup…
CSS3 Animations
•   Two Step
     – Defining when animation happens and for how long
     – Defining animation itself

    h1{
          color:red;
          animation:myfirst 5s;
    }

    @keyframes myfirst              @keyframes myfirst
    {background:red                 {
                              OR    0% {color:red;}
    from {color:red}
                                    100% {color:yellow;}
    to {color:yellow;}              }
    }
                                      …now let’s do some markup…
Back to Physio.
•   Transfer to Mobile

•   User Story: Display exercises to user via mobile
     – Task 1: create menu system
     – Task 2: insert created exercises into menu




                                              …let’s wrap this up…
End Bit
•   CSS3 offers some really great performant abilities to your
    markup

•   I still forget my physio. Exercises




•   Questions???



•   Mark A R Smith MA BEng
     – mark@mymittens.co.uk

Contenu connexe

Similaire à CSS3 Animations & Transitions with PhoneGap

Win j svsphonegap-damyan-petev-mihail-mateev
Win j svsphonegap-damyan-petev-mihail-mateevWin j svsphonegap-damyan-petev-mihail-mateev
Win j svsphonegap-damyan-petev-mihail-mateev
Mihail Mateev
 

Similaire à CSS3 Animations & Transitions with PhoneGap (20)

Make your animations perform well - Anna Migas - Codemotion Rome 2017
Make your animations perform well - Anna Migas - Codemotion Rome 2017Make your animations perform well - Anna Migas - Codemotion Rome 2017
Make your animations perform well - Anna Migas - Codemotion Rome 2017
 
Building a game engine with jQuery
Building a game engine with jQueryBuilding a game engine with jQuery
Building a game engine with jQuery
 
Js foo - Sept 8 upload
Js foo - Sept 8 uploadJs foo - Sept 8 upload
Js foo - Sept 8 upload
 
HTML5 Can't Do That
HTML5 Can't Do ThatHTML5 Can't Do That
HTML5 Can't Do That
 
TP_Webots_7mai2021.pdf
TP_Webots_7mai2021.pdfTP_Webots_7mai2021.pdf
TP_Webots_7mai2021.pdf
 
Win j svsphonegap-damyan-petev-mihail-mateev
Win j svsphonegap-damyan-petev-mihail-mateevWin j svsphonegap-damyan-petev-mihail-mateev
Win j svsphonegap-damyan-petev-mihail-mateev
 
Advanced #4 GPU & Animations
Advanced #4   GPU & AnimationsAdvanced #4   GPU & Animations
Advanced #4 GPU & Animations
 
Xtext, diagrams and ux
Xtext, diagrams and uxXtext, diagrams and ux
Xtext, diagrams and ux
 
Busy Developer's Guide to Windows 8 HTML/JavaScript Apps
Busy Developer's Guide to Windows 8 HTML/JavaScript AppsBusy Developer's Guide to Windows 8 HTML/JavaScript Apps
Busy Developer's Guide to Windows 8 HTML/JavaScript Apps
 
Good bye Massive View Controller!
Good bye Massive View Controller!Good bye Massive View Controller!
Good bye Massive View Controller!
 
APIs for modern web apps
APIs for modern web appsAPIs for modern web apps
APIs for modern web apps
 
Hacking to be performant
Hacking to be performantHacking to be performant
Hacking to be performant
 
Android design lecture #1
Android design   lecture #1Android design   lecture #1
Android design lecture #1
 
MVPWorkshop_CodeCamp 2023.pdf
MVPWorkshop_CodeCamp 2023.pdfMVPWorkshop_CodeCamp 2023.pdf
MVPWorkshop_CodeCamp 2023.pdf
 
Mobile native-hacks
Mobile native-hacksMobile native-hacks
Mobile native-hacks
 
Custom V CMS
Custom V CMSCustom V CMS
Custom V CMS
 
HalfStack London - Make Your Animations Perform Well
HalfStack London - Make Your Animations Perform Well HalfStack London - Make Your Animations Perform Well
HalfStack London - Make Your Animations Perform Well
 
Make Your Animations Perform Well - JS Conf Budapest 2017
Make Your Animations Perform Well - JS Conf Budapest 2017 Make Your Animations Perform Well - JS Conf Budapest 2017
Make Your Animations Perform Well - JS Conf Budapest 2017
 
multi platform mobile development using titanium
multi platform mobile development using titaniummulti platform mobile development using titanium
multi platform mobile development using titanium
 
Make your animations perform well
Make your animations perform wellMake your animations perform well
Make your animations perform well
 

Dernier

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Dernier (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
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...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 

CSS3 Animations & Transitions with PhoneGap

  • 1. CSS3 Animations & Transitions with PhoneGap – Mark A R Smith 11/04/13 @mark_a_r_smith mark@mymittens.co.uk
  • 2. CSS3 • Greatly improved set of tools for modern browsers – Selectors – Box Model – Backgrounds and Borders – Text Effects – 2D/3D Transformations – Animations – Multiple Column Layout – User Interface • Hardware acceleration!!!
  • 3. PhoneGap/Cordova • All platforms have a WebView (iOS/Android/Windows8/etc) • PhoneGap allows rendering to such a WebView with hooks to hardware (i.e. Compass, vibration, Camera)
  • 4. What we want to do…
  • 5. What we want to do…
  • 6. What we want to do… • Build an app. to assist with remembering physio. exercises. – User Story 1: Display exercise to user – User Story 2: Display exercises to user via mobile … – User Story 3: Display specific exercises to user via mobile …let’s write some markup…
  • 7. …but first some tools! • Android ADT bundle – http://developer.android.com/sdk/index.html • Applaud – http://www.mobiledevelopersolutions.com/home/start/startdet ails • (Sencha SDK/SenchaCMD) – http://www.sencha.com/products/sencha-cmd/download – http://www.sencha.com/products/touch/download/
  • 8. Android ADT Bundle • Includes… – A code editor (eclipse) preconfigured with the Android Developer Tools (code highlighting, intelli-sense, build tools) – SDK tools. The engine to drive this stuff – Emulator (slow as shit – plug in!)
  • 9. Applaud • Automates creation of PhoneGap project for Android • Quite out of date (uses PhoneGap 1.9, 2.6 is latest) • Can point to later API’s • Can include other API’s straight into project (Jquery, etc) • Makes creating a new app. completely painless
  • 10. Sencha Touch • Just what I’m using (great application level JS engine) • You could use JQuery Mobile, or just straight HTML
  • 11. Back to Physio. • Simple “Hello World” • User Story: Display exercise to user – Task 1: create HTML to display exercise 1 – Task 2: display exercise 1 on mobile device …now let’s really do some markup…
  • 12. CSS3 Transitions • Doing nothing different, but does it with a cool animation effect. h1{ font-size:26px; transition: font-size 5s; } h1:hover{ font-size: 200px; } …now let’s do some markup…
  • 13. CSS3 Animations • Two Step – Defining when animation happens and for how long – Defining animation itself h1{ color:red; animation:myfirst 5s; } @keyframes myfirst @keyframes myfirst {background:red { OR 0% {color:red;} from {color:red} 100% {color:yellow;} to {color:yellow;} } } …now let’s do some markup…
  • 14. Back to Physio. • Transfer to Mobile • User Story: Display exercises to user via mobile – Task 1: create menu system – Task 2: insert created exercises into menu …let’s wrap this up…
  • 15. End Bit • CSS3 offers some really great performant abilities to your markup • I still forget my physio. Exercises • Questions??? • Mark A R Smith MA BEng – mark@mymittens.co.uk