SlideShare une entreprise Scribd logo
1  sur  40
Télécharger pour lire hors ligne
Front-End
Web Development
Lesson 17
Animation
Agenda
● Review
● CSS3 Transitions
● CSS3 Animations
● Animate.css
● Lab - Egg Drop Game
Review
Application Form
To Do List
CSS3 Transitions
With CSS3, we can add an effect when
changing from one style to another …
● without using Flash animations
● without using JavaScript
CSS3 Transitions
CSS3 transitions are effects that let an element
gradually change from one style to another.
CSS3 Transitions
Must specify two things:
● the CSS property you want to add an
effect to
● the duration of the effect
CSS3 Transitions
Note: If duration is not specified, the transition
will have no effect.
Why? The default value is 0.
CSS3 Transitions
properties
● transition
● transition-delay
● transition-duration
● transition-property
● transition-timing-function
CSS3 Transitions
properties
● transition -- a shorthand property for
setting the four transition properties into a
single property
CSS3 Transitions
properties
● transition-delay -- specifies when the
transition effect will start
CSS3 Transitions
properties
● transition-duration -- specifies how
many seconds or milliseconds a transition
effect takes to complete
CSS3 Transitions
properties
● transition-property -- specifies the name
of the CSS property the transition effect is
for
CSS3 Transitions
properties
● transition-timing-function -- specifies
the speed curve of the transition effect
CSS3 Transitions
WebKit-based browsers
● Safari
● Chrome (until version 28)
complete list of browsers
complete list of WebKit CSS properties
CSS3 Transitions
Example:
transition_1.html
CSS3 Transitions
Example: Making Multiple Changes
To add transition effects for more than one
CSS property, separate the properties with a
comma.
transition_2.html
CSS3 Transitions
Example: Using Individual Properties
transition_3a.html
Example: Combining Individual Properties
transition_3b.html
CSS3 Animations
With CSS3, we can create animations which
can replace …
● Flash animations
● animated images
● JavaScripts
... in existing web pages.
CSS3 Animations
An animation lets an element gradually change
from one style to another.
You can change as many properties you want,
as many times you want.
CSS3 Animations
You can specify when the change will happen
in percent, or you can use the keywords "from"
and "to" (which represents 0% and 100%).
● 0% represents the start of the animation
● 100% is when the animation is complete
CSS3 Animations
When an animation is created in the
@keyframe rule, you must bind it to a selector,
otherwise the animation will have no effect.
CSS3 Animations
Bind the animation to a selector (element) by
specifying at least these two properties:
● the name of the animation
● the duration of the animation
CSS3 Animations
properties
● @keyframes
● animation
● animation-delay
● animation-direction
● animation-duration
CSS3 Animations
properties
● @keyframes -- controls the intermediate
steps in a CSS animation sequence by
establishing keyframes (or waypoints)
along the animation sequence
CSS3 Animations
properties
● animation -- a shorthand property for
setting all the animation properties, except
○ animation-play-state
○ animation-fill-mode
CSS3 Animations
properties
● animation-delay -- specifies when the
animation will start
CSS3 Animations
properties
● animation-direction -- specifies whether
or not the animation should play in
reverse on alternate cycles
CSS3 Animations
properties
● animation-duration -- specifies how
many seconds or milliseconds an
animation takes to complete one cycle
CSS3 Animations
more properties
● animation-fill-mode
● animation-iteration-count
● animation-name
● animation-play-state
● animation-timing-function
CSS3 Animations
more properties
● animation-fill-mode -- specifies what
styles will apply for the element when the
animation is not playing ..
○ when it is finished, or
○ when it has a "delay"
CSS3 Animations
more properties
● animation-iteration-count -- specifies
the number of times an animation should
be played
CSS3 Animations
more properties
● animation-name -- specifies the name of
the @keyframes animation
CSS3 Animations
more properties
● animation-play-state -- specifies whether
the animation is running or paused
CSS3 Animations
more properties
● animation-timing-function -- specifies
the speed curve of the animation
CSS3 Animations
Example:
animation_1.html
CSS3 Animations
Example: Change the background color when
the animation is 25%, and 50%, and again
when the animation is 100% complete.
animation_2.html
CSS3 Animations
Example: Change the background color and
the position when the animation is 25%, 50%,
75%, and again when the animation is 100%
complete:
animation_3.html
CSS3 Animations
Example: Using seven animation properties
animation_4a.html
animation_4b.html
CSS3 Transitions
Just-add-water CSS animations with Animate.
css
Easy CSS3 Animation with Animate.css
How To Use Animate.css
Lab
Egg Drop Game
● work in teams of two

Contenu connexe

En vedette

Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
Sónia
 
Developing Interactive systems - lesson 2
Developing Interactive systems - lesson 2Developing Interactive systems - lesson 2
Developing Interactive systems - lesson 2
Sónia
 
Technology Trust 08 24 09 Power Point Final
Technology Trust 08 24 09 Power Point FinalTechnology Trust 08 24 09 Power Point Final
Technology Trust 08 24 09 Power Point Final
jhustad1
 

En vedette (18)

Technology, Trust, & Transparency
Technology, Trust, & TransparencyTechnology, Trust, & Transparency
Technology, Trust, & Transparency
 
Ifi7184 lesson4
Ifi7184 lesson4Ifi7184 lesson4
Ifi7184 lesson4
 
Ifi7184 lesson3
Ifi7184 lesson3Ifi7184 lesson3
Ifi7184 lesson3
 
Helping users in assessing the trustworthiness of user-generated reviews
Helping users in assessing the trustworthiness of user-generated reviewsHelping users in assessing the trustworthiness of user-generated reviews
Helping users in assessing the trustworthiness of user-generated reviews
 
Ifi7174 lesson1
Ifi7174 lesson1Ifi7174 lesson1
Ifi7174 lesson1
 
Trust workshop
Trust workshopTrust workshop
Trust workshop
 
Ifi7174 lesson2
Ifi7174 lesson2Ifi7174 lesson2
Ifi7174 lesson2
 
Trust from a Human Computer Interaction perspective
Trust from a Human Computer Interaction perspective Trust from a Human Computer Interaction perspective
Trust from a Human Computer Interaction perspective
 
Ifi7174 lesson4
Ifi7174 lesson4Ifi7174 lesson4
Ifi7174 lesson4
 
Ifi7184 lesson6
Ifi7184 lesson6Ifi7184 lesson6
Ifi7184 lesson6
 
Developing Interactive systems - lesson 2
Developing Interactive systems - lesson 2Developing Interactive systems - lesson 2
Developing Interactive systems - lesson 2
 
Technology Trust 08 24 09 Power Point Final
Technology Trust 08 24 09 Power Point FinalTechnology Trust 08 24 09 Power Point Final
Technology Trust 08 24 09 Power Point Final
 
A design space for Trust-enabling Interaction Design
A design space for Trust-enabling Interaction DesignA design space for Trust-enabling Interaction Design
A design space for Trust-enabling Interaction Design
 
Workshop 1
Workshop 1Workshop 1
Workshop 1
 
MG673 - Session 1
MG673 - Session 1MG673 - Session 1
MG673 - Session 1
 
Technology and Trust: The Challenge of 21st Century Government
Technology and Trust: The Challenge of 21st Century GovernmentTechnology and Trust: The Challenge of 21st Century Government
Technology and Trust: The Challenge of 21st Century Government
 
Trust in IT: Factors, Metrics and Models
Trust in IT: Factors, Metrics and ModelsTrust in IT: Factors, Metrics and Models
Trust in IT: Factors, Metrics and Models
 
An Operating System for the Real World
An Operating System for the Real WorldAn Operating System for the Real World
An Operating System for the Real World
 

Similaire à Lesson 17

Css3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQueryCss3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQuery
Andrea Verlicchi
 

Similaire à Lesson 17 (20)

CSS Animations & Transitions
CSS Animations & TransitionsCSS Animations & Transitions
CSS Animations & Transitions
 
Workshop 18: CSS Animations & cool effects
Workshop 18: CSS Animations & cool effectsWorkshop 18: CSS Animations & cool effects
Workshop 18: CSS Animations & cool effects
 
CSS3 Animation for beginners - Imrokraft
CSS3 Animation for beginners - ImrokraftCSS3 Animation for beginners - Imrokraft
CSS3 Animation for beginners - Imrokraft
 
Tailwind Animation: How to Make Eye-Catching Websites
Tailwind Animation: How to Make Eye-Catching WebsitesTailwind Animation: How to Make Eye-Catching Websites
Tailwind Animation: How to Make Eye-Catching Websites
 
Demystifying Angular Animations
Demystifying Angular AnimationsDemystifying Angular Animations
Demystifying Angular Animations
 
Dynamic CSS: Transforms, Transitions, and Animation Basics
Dynamic CSS: Transforms, Transitions, and Animation BasicsDynamic CSS: Transforms, Transitions, and Animation Basics
Dynamic CSS: Transforms, Transitions, and Animation Basics
 
Android App Development - 12 animations
Android App Development - 12 animationsAndroid App Development - 12 animations
Android App Development - 12 animations
 
Css3
Css3Css3
Css3
 
Neoito — Animations in Angular 5
Neoito — Animations in Angular 5Neoito — Animations in Angular 5
Neoito — Animations in Angular 5
 
Day seven
Day sevenDay seven
Day seven
 
Make your animations perform well
Make your animations perform wellMake your animations perform well
Make your animations perform well
 
BG and Animation Property web technology.ppt
BG and Animation Property web technology.pptBG and Animation Property web technology.ppt
BG and Animation Property web technology.ppt
 
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
 
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
 
Creating Beautiful CSS3 Animations - FITC Amsterdam 2016
Creating Beautiful CSS3 Animations - FITC Amsterdam 2016Creating Beautiful CSS3 Animations - FITC Amsterdam 2016
Creating Beautiful CSS3 Animations - FITC Amsterdam 2016
 
Css3
Css3Css3
Css3
 
Css3
Css3Css3
Css3
 
html5_css3
html5_css3html5_css3
html5_css3
 
Android animation theory
Android animation theoryAndroid animation theory
Android animation theory
 
Css3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQueryCss3 transitions and animations + graceful degradation with jQuery
Css3 transitions and animations + graceful degradation with jQuery
 

Plus de Gene Babon (20)

Job Search | Tropical Depressions | Bowling Alleys
Job Search | Tropical Depressions | Bowling AlleysJob Search | Tropical Depressions | Bowling Alleys
Job Search | Tropical Depressions | Bowling Alleys
 
Tech Over Fifty Launch Meeting
Tech Over Fifty Launch MeetingTech Over Fifty Launch Meeting
Tech Over Fifty Launch Meeting
 
Anatomy Virtual Self Study Group NEPHP 2018
Anatomy Virtual Self Study Group NEPHP 2018Anatomy Virtual Self Study Group NEPHP 2018
Anatomy Virtual Self Study Group NEPHP 2018
 
Become a Front End Web Developer
Become a Front End Web DeveloperBecome a Front End Web Developer
Become a Front End Web Developer
 
Navigating a Career in Web Technology
Navigating a Career in Web TechnologyNavigating a Career in Web Technology
Navigating a Career in Web Technology
 
Info Session
Info SessionInfo Session
Info Session
 
Info session
Info sessionInfo session
Info session
 
Getting Things Done
Getting Things DoneGetting Things Done
Getting Things Done
 
jQuery Mobile Hour 4
jQuery Mobile Hour 4jQuery Mobile Hour 4
jQuery Mobile Hour 4
 
Lesson 18
Lesson 18Lesson 18
Lesson 18
 
Lesson 17
Lesson 17Lesson 17
Lesson 17
 
Lesson 16
Lesson 16Lesson 16
Lesson 16
 
Lesson 15
Lesson 15Lesson 15
Lesson 15
 
Lesson 11
Lesson 11Lesson 11
Lesson 11
 
Lesson 10
Lesson 10Lesson 10
Lesson 10
 
Lesson 09
Lesson 09Lesson 09
Lesson 09
 
Lesson 05
Lesson 05Lesson 05
Lesson 05
 
Lesson 04
Lesson 04Lesson 04
Lesson 04
 
Lesson 03
Lesson 03Lesson 03
Lesson 03
 
Lesson 01
Lesson 01Lesson 01
Lesson 01
 

Dernier

Dernier (20)

How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
Demystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John StaveleyDemystifying gRPC in .Net by John Staveley
Demystifying gRPC in .Net by John Staveley
 
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone KomSalesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
Salesforce Adoption – Metrics, Methods, and Motivation, Antone Kom
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
Measures in SQL (a talk at SF Distributed Systems meetup, 2024-05-22)
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdfThe Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
The Value of Certifying Products for FDO _ Paul at FIDO Alliance.pdf
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
TEST BANK For, Information Technology Project Management 9th Edition Kathy Sc...
 

Lesson 17