SlideShare a Scribd company logo
CSS3 Transitions
CSS Transitions Introduction




   CSS Transitions allow property changes in CSS values to occur smoothly over a
   specified duration. This smoothing animates the changing of a CSS value when
   triggered by a mouse click, focus or active state, or any changes to the element
   (including even a change on the element’s class attribute).
Basic Rollover


 HTML:

   <a href="#" class="button">Transition me!</a>



 CSS:

  a.button {
     padding: 5px 10px;
     background: #4EBFBF;
     color: #fff;
     text-decoration: none;
    }

  a.button:hover {
         background: #690;
    }
Basic Rollover with Transition


 HTML:

   <a href="#" class="button">Transition me!</a>


 CSS:
  a.button {
     padding: 5px 10px;
     background: #4EBFBF;
     color: #fff;
     text-decoration: none;
     -moz-transition-property: background;
     -moz-transition-duration: 0.3s;
     -moz-transition-timing-function: ease;
    }

  a.button:hover {
         background: #690;
    }
Basic Rollover with Transition




                    background: #4EBFBF;
                    transition-property: background;
                    transition-duration: 0.3s;
                    transition-timing-function: ease;




    transition-property: The property to be transitioned (in this case, the background property)
    transition-duration: How long the transition should last (0.3 seconds)
    transition-timing-function: How fast the transition happens over time (ease)
Timing Function



                        transition-timing-function: ease;


    The timing function value allows the speed of the transition to change over time by
    defining one of six possibilities: ease, linear, ease-in, ease-out, ease-in-out, and cubic-
    bezier (which allows you to define your own timing curve).
Timing Function




       If you slept through geometry in high school like I did, don’t worry. I recommend
       simply plugging in each of these timing function values to see how they differ.

       …For longer animations, the timing function you choose becomes more of an
       important piece of the puzzle, as there’s time to notice the speed changes over the
       length of the animation.

       When in doubt, ease (which is also the default value) or linear should work just fine for
       short transitions.

       - Dan Cederholm
       http://www.alistapart.com/articles/understanding-css3-transitions
Shorthand Code




                 transition-property: background;
                 transition-duration: 0.3s;
                 transition-timing-function: ease;


                              Is the same as:



                 transition: background 0.3s ease;
Browser Compatibility




  The transition property is not supported in any browsers.
  Firefox 4 supports an alternative, the -moz-transition property.
  Safari and Chrome support an alternative, the -webkit-transition property.
  Opera supports an alternative, the -o-transition property.




                -webkit-transition: background 0.3s ease;
                -moz-transition: background 0.3s ease;
                -o-transition: background 0.3s ease;
                transition: background 0.3s ease;
Browser Compatibility
Wouldn’t it make more sense if the transition properties were placed in the :hover declaration,
since that’s the trigger for the transition?

The answer is that there are other possible states of an element besides :hover, and you’ll likely
want that transition to happen on each of those without duplication.

For instance, you may want the transition to also happen on the :focus or :active pseudo-classes
of the link as well. Instead of having to add the transition property stack to each of those
declarations, the transition instructions are attached to the normal state and therefore declared
only once.

- Dan Cederholm
http://www.alistapart.com/articles/understanding-css3-transitions
Transitioning multiple properties



   Let’s say that along with the background color, we also want to change the link’s text color
   and transition that as well. We can do that by stringing multiple transitions together,
   separated by a comma. Each can have their varying duration and timing functions .


       a.button {
       padding: 5px 10px;
       background: #4EBFBF;
       color: #fff;
       -webkit-transition: background .3s ease, color 0.2s linear;
       -moz-transition: background .3s ease, color 0.2s linear;
       -o-transition: background .3s ease, color 0.2s linear;
       transition: background .3s ease, color 0.2s linear;
       }

       a.button:hover, a.button:focus {
       color: #030; background: #690;
       }


                                                    Text via: http://www.alistapart.com/articles/understanding-css3-transitions
Transitioning multiple properties


   An alternative to listing multiple properties is using the all value. This will transition all
   available properties.

   Let’s drop all into our simple example instead of listing background and color separately.
   They’ll now share the same duration and timing function.

                         a.button {
                         padding: 5px 10px;
                         background: #4EBFBF;
                         color: #fff;
                         -webkit-transition: all 0.3s
                         ease;
                         -moz-transition: all 0.3s ease;
                          -o-transition: all 0.3s ease;
                         transition: all 0.3s ease;
                         }

                         a.button:hover, a.button:focus {
                         color: #030; background: #690;
                         }
                                                       Text via: http://www.alistapart.com/articles/understanding-css3-transitions
Example B:


 div.exampletransitionb {               CSS
     width: 520px;
 }
 div.exampletransitionb div {
     background-color: #ED8029;
     border-radius: 5px 5px 5px 5px;
     color: white;
     margin: 5px 0;
     padding: 5px;
     text-align: right;
     width: 100px;
 }
 div.exampletransitionb:hover div {
     width: 500px;
 }
 div.exampletransitionb div.ease {
     -moz-transition: all 3s ease 0s;          <div class="exampletransitionb">
                                                                                                      HTML
 }
 div.exampletransitionb div.linear {
                                               <div   class="ease">ease</div>
     -moz-transition: all 3s linear 0s;
 }
                                               <div   class="linear">linear</div>
 div.exampletransitionb div.easein {           <div   class="easein">ease-in</div>
     -moz-transition: all 3s ease-in 0s;       <div   class="easeout">ease-out</div>
 }                                             <div   class="easeinout">ease-in-out</div>
 div.exampletransitionb div.easeout {
     -moz-transition: all 3s ease-out 0s;      </div>
 }
 div.exampletransitionb div.easeinout {
     -moz-transition: all 3s ease-in-out 0s;
 }                                                      Example via: http://www.css3.info/preview/css3-transitions/
http://leaverou.github.com/animatable/
http://tympanus.net/Tutorials/BlurMenu/index.html
Further Reading




         www.alistapart.com/articles/understanding-css3-transitions
         http://www.w3schools.com/css3/css3_transitions.asp
         http://www.impressivewebs.com/css3-transitions-without-hover
         http://www.netmagazine.com/tutorials/more-efficient-css3-transitions
         http://en.wikipedia.org/wiki/12_basic_principles_of_animation

More Related Content

Viewers also liked (20)

affTA04 - BAB IV
affTA04 - BAB IVaffTA04 - BAB IV
affTA04 - BAB IV
Muhammad Affandes
 
Capitulo 6
Capitulo 6Capitulo 6
Capitulo 6
anari02
 
African Farmer game walkthrough
African Farmer game walkthroughAfrican Farmer game walkthrough
African Farmer game walkthrough
futureagricultures
 
Children’s rights
Children’s rightsChildren’s rights
Children’s rights
Carlos Javier Di Salvo
 
Planning sheets for final piece
Planning sheets for final piecePlanning sheets for final piece
Planning sheets for final piece
aq101824
 
How to pledge for Kickstarter
How to pledge for KickstarterHow to pledge for Kickstarter
How to pledge for Kickstarter
Alan Rickayzen
 
PS - the delivery of public speaking
PS - the delivery of public speakingPS - the delivery of public speaking
PS - the delivery of public speaking
Zainal Muttaqin
 
Веда Пульс - для специалистов
Веда Пульс - для специалистовВеда Пульс - для специалистов
Веда Пульс - для специалистов
Елена Шальнова
 
Whitby Seafoods - Office Refurbishment Project
Whitby Seafoods - Office Refurbishment ProjectWhitby Seafoods - Office Refurbishment Project
Whitby Seafoods - Office Refurbishment Project
Neil Emmott
 
For (;;)
For (;;)For (;;)
For (;;)
Abinash Shaw
 
Ukita june 2011pptx
Ukita june 2011pptxUkita june 2011pptx
Ukita june 2011pptx
ECDStaffsUni
 
Outland res. brochure 6 30-11 brown
Outland res. brochure 6 30-11 brownOutland res. brochure 6 30-11 brown
Outland res. brochure 6 30-11 brown
Jessica Luth
 
Unit 57 terminology becky doyle
Unit 57 terminology becky doyleUnit 57 terminology becky doyle
Unit 57 terminology becky doyle
FirstClassProductions
 
RAJIV GANDHI PR SASHAKTIKARAN YOJANA {RGPSA}
RAJIV GANDHI PR SASHAKTIKARAN YOJANA {RGPSA} RAJIV GANDHI PR SASHAKTIKARAN YOJANA {RGPSA}
RAJIV GANDHI PR SASHAKTIKARAN YOJANA {RGPSA}
rakesh_srivastava
 
Anexo 12 pc 66707 alimentação (1)
Anexo 12   pc 66707 alimentação (1)Anexo 12   pc 66707 alimentação (1)
Anexo 12 pc 66707 alimentação (1)
Miguel Rosario
 
Interactive Reader + Foldable
Interactive Reader  + FoldableInteractive Reader  + Foldable
Interactive Reader + Foldable
jmori1
 
Mortgage Backed Securities
Mortgage Backed SecuritiesMortgage Backed Securities
Mortgage Backed Securities
Clint Hammond
 
Ba759 e70 4b70-45e3-896deb1f6574f53e
Ba759 e70 4b70-45e3-896deb1f6574f53eBa759 e70 4b70-45e3-896deb1f6574f53e
Ba759 e70 4b70-45e3-896deb1f6574f53e
Carlos Carvalho
 
2011 2012 annual report
2011 2012 annual report2011 2012 annual report
2011 2012 annual report
Scottsbluff Public Schools
 
Capitulo 6
Capitulo 6Capitulo 6
Capitulo 6
anari02
 
African Farmer game walkthrough
African Farmer game walkthroughAfrican Farmer game walkthrough
African Farmer game walkthrough
futureagricultures
 
Planning sheets for final piece
Planning sheets for final piecePlanning sheets for final piece
Planning sheets for final piece
aq101824
 
How to pledge for Kickstarter
How to pledge for KickstarterHow to pledge for Kickstarter
How to pledge for Kickstarter
Alan Rickayzen
 
PS - the delivery of public speaking
PS - the delivery of public speakingPS - the delivery of public speaking
PS - the delivery of public speaking
Zainal Muttaqin
 
Веда Пульс - для специалистов
Веда Пульс - для специалистовВеда Пульс - для специалистов
Веда Пульс - для специалистов
Елена Шальнова
 
Whitby Seafoods - Office Refurbishment Project
Whitby Seafoods - Office Refurbishment ProjectWhitby Seafoods - Office Refurbishment Project
Whitby Seafoods - Office Refurbishment Project
Neil Emmott
 
Ukita june 2011pptx
Ukita june 2011pptxUkita june 2011pptx
Ukita june 2011pptx
ECDStaffsUni
 
Outland res. brochure 6 30-11 brown
Outland res. brochure 6 30-11 brownOutland res. brochure 6 30-11 brown
Outland res. brochure 6 30-11 brown
Jessica Luth
 
RAJIV GANDHI PR SASHAKTIKARAN YOJANA {RGPSA}
RAJIV GANDHI PR SASHAKTIKARAN YOJANA {RGPSA} RAJIV GANDHI PR SASHAKTIKARAN YOJANA {RGPSA}
RAJIV GANDHI PR SASHAKTIKARAN YOJANA {RGPSA}
rakesh_srivastava
 
Anexo 12 pc 66707 alimentação (1)
Anexo 12   pc 66707 alimentação (1)Anexo 12   pc 66707 alimentação (1)
Anexo 12 pc 66707 alimentação (1)
Miguel Rosario
 
Interactive Reader + Foldable
Interactive Reader  + FoldableInteractive Reader  + Foldable
Interactive Reader + Foldable
jmori1
 
Mortgage Backed Securities
Mortgage Backed SecuritiesMortgage Backed Securities
Mortgage Backed Securities
Clint Hammond
 
Ba759 e70 4b70-45e3-896deb1f6574f53e
Ba759 e70 4b70-45e3-896deb1f6574f53eBa759 e70 4b70-45e3-896deb1f6574f53e
Ba759 e70 4b70-45e3-896deb1f6574f53e
Carlos Carvalho
 

Similar to CSS3 Transitions (20)

Chapter 18: Transitions, Transforms, and Animation
Chapter 18: Transitions, Transforms, and AnimationChapter 18: Transitions, Transforms, and Animation
Chapter 18: Transitions, Transforms, and Animation
Steve Guinan
 
Webkit Transitions. The Good, The Bad, & The Awesome
Webkit Transitions. The Good, The Bad, & The AwesomeWebkit Transitions. The Good, The Bad, & The Awesome
Webkit Transitions. The Good, The Bad, & The Awesome
davatron5000
 
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
 
Css3
Css3Css3
Css3
Knoldus Inc.
 
Transition
TransitionTransition
Transition
amruta deshpande
 
Mastering CSS Animations
Mastering CSS AnimationsMastering CSS Animations
Mastering CSS Animations
Goodbytes
 
Interface Styling & Scripting on WebKit Mobile
Interface Styling & Scripting on WebKit MobileInterface Styling & Scripting on WebKit Mobile
Interface Styling & Scripting on WebKit Mobile
David Aurelio
 
DotNetNuke World CSS3
DotNetNuke World CSS3DotNetNuke World CSS3
DotNetNuke World CSS3
gravityworksdd
 
transtition and their optimizations lecture 8
transtition and their optimizations lecture 8transtition and their optimizations lecture 8
transtition and their optimizations lecture 8
Komal Khanna
 
Css3 101
Css3 101Css3 101
Css3 101
Ignacio Coloma
 
CSS3 TTA (Transform Transition Animation)
CSS3 TTA (Transform Transition Animation)CSS3 TTA (Transform Transition Animation)
CSS3 TTA (Transform Transition Animation)
창석 한
 
Css animation
Css animationCss animation
Css animation
Aaron King
 
Making Links Magical Again with CSS
Making Links Magical Again with CSSMaking Links Magical Again with CSS
Making Links Magical Again with CSS
Jenn Lukas
 
Make your animations perform well
Make your animations perform wellMake your animations perform well
Make your animations perform well
Anna Migas
 
Workshop 18: CSS Animations & cool effects
Workshop 18: CSS Animations & cool effectsWorkshop 18: CSS Animations & cool effects
Workshop 18: CSS Animations & cool effects
Visual Engineering
 
Philly.NET Code Camp 2014.1
Philly.NET Code Camp 2014.1Philly.NET Code Camp 2014.1
Philly.NET Code Camp 2014.1
Mike Melusky
 
JS.Chi CSS Animations
JS.Chi CSS AnimationsJS.Chi CSS Animations
JS.Chi CSS Animations
Justin Meyer
 
HTML5, CSS3, and other fancy buzzwords
HTML5, CSS3, and other fancy buzzwordsHTML5, CSS3, and other fancy buzzwords
HTML5, CSS3, and other fancy buzzwords
Mo Jangda
 
Css3
Css3Css3
Css3
Rahma Boufalgha
 
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
Codemotion
 
Chapter 18: Transitions, Transforms, and Animation
Chapter 18: Transitions, Transforms, and AnimationChapter 18: Transitions, Transforms, and Animation
Chapter 18: Transitions, Transforms, and Animation
Steve Guinan
 
Webkit Transitions. The Good, The Bad, & The Awesome
Webkit Transitions. The Good, The Bad, & The AwesomeWebkit Transitions. The Good, The Bad, & The Awesome
Webkit Transitions. The Good, The Bad, & The Awesome
davatron5000
 
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
 
Mastering CSS Animations
Mastering CSS AnimationsMastering CSS Animations
Mastering CSS Animations
Goodbytes
 
Interface Styling & Scripting on WebKit Mobile
Interface Styling & Scripting on WebKit MobileInterface Styling & Scripting on WebKit Mobile
Interface Styling & Scripting on WebKit Mobile
David Aurelio
 
transtition and their optimizations lecture 8
transtition and their optimizations lecture 8transtition and their optimizations lecture 8
transtition and their optimizations lecture 8
Komal Khanna
 
CSS3 TTA (Transform Transition Animation)
CSS3 TTA (Transform Transition Animation)CSS3 TTA (Transform Transition Animation)
CSS3 TTA (Transform Transition Animation)
창석 한
 
Making Links Magical Again with CSS
Making Links Magical Again with CSSMaking Links Magical Again with CSS
Making Links Magical Again with CSS
Jenn Lukas
 
Make your animations perform well
Make your animations perform wellMake your animations perform well
Make your animations perform well
Anna Migas
 
Workshop 18: CSS Animations & cool effects
Workshop 18: CSS Animations & cool effectsWorkshop 18: CSS Animations & cool effects
Workshop 18: CSS Animations & cool effects
Visual Engineering
 
Philly.NET Code Camp 2014.1
Philly.NET Code Camp 2014.1Philly.NET Code Camp 2014.1
Philly.NET Code Camp 2014.1
Mike Melusky
 
JS.Chi CSS Animations
JS.Chi CSS AnimationsJS.Chi CSS Animations
JS.Chi CSS Animations
Justin Meyer
 
HTML5, CSS3, and other fancy buzzwords
HTML5, CSS3, and other fancy buzzwordsHTML5, CSS3, and other fancy buzzwords
HTML5, CSS3, and other fancy buzzwords
Mo Jangda
 
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
Codemotion
 

More from hstryk (16)

CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Properties
hstryk
 
Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2
hstryk
 
Lesson1 - Fall 2013
Lesson1 - Fall 2013Lesson1 - Fall 2013
Lesson1 - Fall 2013
hstryk
 
Lesson2
Lesson2Lesson2
Lesson2
hstryk
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorial
hstryk
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
hstryk
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovers
hstryk
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSS
hstryk
 
Lecture4
Lecture4Lecture4
Lecture4
hstryk
 
Tutorial1 - Part 2
Tutorial1 - Part 2Tutorial1 - Part 2
Tutorial1 - Part 2
hstryk
 
Tutorial1
Tutorial1Tutorial1
Tutorial1
hstryk
 
Project1
Project1Project1
Project1
hstryk
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
hstryk
 
Lesson2
Lesson2Lesson2
Lesson2
hstryk
 
Lesson1
Lesson1Lesson1
Lesson1
hstryk
 
Heather Strycharz - Resume
Heather Strycharz - ResumeHeather Strycharz - Resume
Heather Strycharz - Resume
hstryk
 
CSS - Text Properties
CSS - Text PropertiesCSS - Text Properties
CSS - Text Properties
hstryk
 
Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2Lesson 3 - HTML & CSS Part 2
Lesson 3 - HTML & CSS Part 2
hstryk
 
Lesson1 - Fall 2013
Lesson1 - Fall 2013Lesson1 - Fall 2013
Lesson1 - Fall 2013
hstryk
 
Lesson2
Lesson2Lesson2
Lesson2
hstryk
 
CSS Layout Tutorial
CSS Layout TutorialCSS Layout Tutorial
CSS Layout Tutorial
hstryk
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
hstryk
 
Sprites rollovers
Sprites rolloversSprites rollovers
Sprites rollovers
hstryk
 
Building a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSSBuilding a Website from Planning to Photoshop Mockup to HTML/CSS
Building a Website from Planning to Photoshop Mockup to HTML/CSS
hstryk
 
Lecture4
Lecture4Lecture4
Lecture4
hstryk
 
Tutorial1 - Part 2
Tutorial1 - Part 2Tutorial1 - Part 2
Tutorial1 - Part 2
hstryk
 
Tutorial1
Tutorial1Tutorial1
Tutorial1
hstryk
 
Project1
Project1Project1
Project1
hstryk
 
Lesson 3
Lesson 3Lesson 3
Lesson 3
hstryk
 
Lesson2
Lesson2Lesson2
Lesson2
hstryk
 
Lesson1
Lesson1Lesson1
Lesson1
hstryk
 
Heather Strycharz - Resume
Heather Strycharz - ResumeHeather Strycharz - Resume
Heather Strycharz - Resume
hstryk
 

Recently uploaded (20)

AVS Video Converter 12.1.5.673 Full Crack Download [Latest]
AVS Video Converter 12.1.5.673 Full Crack Download [Latest]AVS Video Converter 12.1.5.673 Full Crack Download [Latest]
AVS Video Converter 12.1.5.673 Full Crack Download [Latest]
Google
 
Captivating 3D Interior Render of Elegant Residential Project in Jeddah City,...
Captivating 3D Interior Render of Elegant Residential Project in Jeddah City,...Captivating 3D Interior Render of Elegant Residential Project in Jeddah City,...
Captivating 3D Interior Render of Elegant Residential Project in Jeddah City,...
Yantram Animation Studio Corporation
 
Minahil Mushtaq's Creative Portfolio 2024
Minahil Mushtaq's Creative Portfolio 2024Minahil Mushtaq's Creative Portfolio 2024
Minahil Mushtaq's Creative Portfolio 2024
MinahilMushtaq2
 
Movavi Video Suite 22.0.1 Crack + Activation Key 2025
Movavi Video Suite 22.0.1 Crack + Activation Key 2025Movavi Video Suite 22.0.1 Crack + Activation Key 2025
Movavi Video Suite 22.0.1 Crack + Activation Key 2025
Designer
 
internship project company portable document
internship project company portable documentinternship project company portable document
internship project company portable document
MytecEnter
 
Unit IV-Logic Gates.pdf gsgagagagagggggg
Unit IV-Logic Gates.pdf gsgagagagaggggggUnit IV-Logic Gates.pdf gsgagagagagggggg
Unit IV-Logic Gates.pdf gsgagagagagggggg
briosmarttv
 
GlarySoft Malware Hunter Pro 1.117.0.710 with Crack [Latest]
GlarySoft Malware Hunter Pro 1.117.0.710 with Crack [Latest]GlarySoft Malware Hunter Pro 1.117.0.710 with Crack [Latest]
GlarySoft Malware Hunter Pro 1.117.0.710 with Crack [Latest]
Designer
 
Boom 3D 1.2.3 Full Crack for Windows Free Download 2025
Boom 3D 1.2.3 Full Crack for Windows Free Download 2025Boom 3D 1.2.3 Full Crack for Windows Free Download 2025
Boom 3D 1.2.3 Full Crack for Windows Free Download 2025
Designer
 
All Lectures DECO1006 and DECO2016 in 2025.pdf
All Lectures DECO1006 and DECO2016 in 2025.pdfAll Lectures DECO1006 and DECO2016 in 2025.pdf
All Lectures DECO1006 and DECO2016 in 2025.pdf
R. Sosa
 
From Chaos to Clarity - A Framework to Maximize Design Impact.pdf
From Chaos to Clarity - A Framework to Maximize Design Impact.pdfFrom Chaos to Clarity - A Framework to Maximize Design Impact.pdf
From Chaos to Clarity - A Framework to Maximize Design Impact.pdf
matthewjdoty
 
Xiaomi Flash Tool Free Download 2025 for All Versions
Xiaomi Flash Tool Free Download 2025 for All VersionsXiaomi Flash Tool Free Download 2025 for All Versions
Xiaomi Flash Tool Free Download 2025 for All Versions
Designer
 
Security Monitor Pro 6.22 Crack Free Download
Security Monitor Pro 6.22 Crack Free DownloadSecurity Monitor Pro 6.22 Crack Free Download
Security Monitor Pro 6.22 Crack Free Download
Software
 
WinX HD Video Converter Deluxe 5.16.7.342 Crack + Key [Latest]
WinX HD Video Converter Deluxe 5.16.7.342 Crack + Key [Latest]WinX HD Video Converter Deluxe 5.16.7.342 Crack + Key [Latest]
WinX HD Video Converter Deluxe 5.16.7.342 Crack + Key [Latest]
Designer
 
FonePaw iPhone Data Recovery 8.5.0 Full Crack 2025
FonePaw iPhone Data Recovery 8.5.0 Full Crack 2025FonePaw iPhone Data Recovery 8.5.0 Full Crack 2025
FonePaw iPhone Data Recovery 8.5.0 Full Crack 2025
Designer
 
Debut Video Capture Pro 7.59 Crack + Registration Code 2025
Debut Video Capture Pro 7.59 Crack + Registration Code 2025Debut Video Capture Pro 7.59 Crack + Registration Code 2025
Debut Video Capture Pro 7.59 Crack + Registration Code 2025
Designer
 
Jjjkalmsnsxjxixnndixndnskaooashbd udnsnjsj
Jjjkalmsnsxjxixnndixndnskaooashbd udnsnjsjJjjkalmsnsxjxixnndixndnskaooashbd udnsnjsj
Jjjkalmsnsxjxixnndixndnskaooashbd udnsnjsj
sanskrutee2008
 
Windows Video Converter 2025 v9.7.0.0 Full Crack 2025
Windows Video Converter 2025 v9.7.0.0 Full Crack 2025Windows Video Converter 2025 v9.7.0.0 Full Crack 2025
Windows Video Converter 2025 v9.7.0.0 Full Crack 2025
Yahoo
 
Movavi Slideshow Maker 7.0.1 Crack + Activation Key [Latest]
Movavi Slideshow Maker 7.0.1 Crack + Activation Key [Latest]Movavi Slideshow Maker 7.0.1 Crack + Activation Key [Latest]
Movavi Slideshow Maker 7.0.1 Crack + Activation Key [Latest]
Developer
 
Apowersoft Video Editor 1.6.8.13 ApowerEdit Crack Download
Apowersoft Video Editor 1.6.8.13 ApowerEdit Crack DownloadApowersoft Video Editor 1.6.8.13 ApowerEdit Crack Download
Apowersoft Video Editor 1.6.8.13 ApowerEdit Crack Download
Designer
 
FontLab 7.2.0.7608 with Crack Free Download [Latest Version]
FontLab 7.2.0.7608 with Crack Free Download [Latest Version]FontLab 7.2.0.7608 with Crack Free Download [Latest Version]
FontLab 7.2.0.7608 with Crack Free Download [Latest Version]
Yahoo
 
AVS Video Converter 12.1.5.673 Full Crack Download [Latest]
AVS Video Converter 12.1.5.673 Full Crack Download [Latest]AVS Video Converter 12.1.5.673 Full Crack Download [Latest]
AVS Video Converter 12.1.5.673 Full Crack Download [Latest]
Google
 
Captivating 3D Interior Render of Elegant Residential Project in Jeddah City,...
Captivating 3D Interior Render of Elegant Residential Project in Jeddah City,...Captivating 3D Interior Render of Elegant Residential Project in Jeddah City,...
Captivating 3D Interior Render of Elegant Residential Project in Jeddah City,...
Yantram Animation Studio Corporation
 
Minahil Mushtaq's Creative Portfolio 2024
Minahil Mushtaq's Creative Portfolio 2024Minahil Mushtaq's Creative Portfolio 2024
Minahil Mushtaq's Creative Portfolio 2024
MinahilMushtaq2
 
Movavi Video Suite 22.0.1 Crack + Activation Key 2025
Movavi Video Suite 22.0.1 Crack + Activation Key 2025Movavi Video Suite 22.0.1 Crack + Activation Key 2025
Movavi Video Suite 22.0.1 Crack + Activation Key 2025
Designer
 
internship project company portable document
internship project company portable documentinternship project company portable document
internship project company portable document
MytecEnter
 
Unit IV-Logic Gates.pdf gsgagagagagggggg
Unit IV-Logic Gates.pdf gsgagagagaggggggUnit IV-Logic Gates.pdf gsgagagagagggggg
Unit IV-Logic Gates.pdf gsgagagagagggggg
briosmarttv
 
GlarySoft Malware Hunter Pro 1.117.0.710 with Crack [Latest]
GlarySoft Malware Hunter Pro 1.117.0.710 with Crack [Latest]GlarySoft Malware Hunter Pro 1.117.0.710 with Crack [Latest]
GlarySoft Malware Hunter Pro 1.117.0.710 with Crack [Latest]
Designer
 
Boom 3D 1.2.3 Full Crack for Windows Free Download 2025
Boom 3D 1.2.3 Full Crack for Windows Free Download 2025Boom 3D 1.2.3 Full Crack for Windows Free Download 2025
Boom 3D 1.2.3 Full Crack for Windows Free Download 2025
Designer
 
All Lectures DECO1006 and DECO2016 in 2025.pdf
All Lectures DECO1006 and DECO2016 in 2025.pdfAll Lectures DECO1006 and DECO2016 in 2025.pdf
All Lectures DECO1006 and DECO2016 in 2025.pdf
R. Sosa
 
From Chaos to Clarity - A Framework to Maximize Design Impact.pdf
From Chaos to Clarity - A Framework to Maximize Design Impact.pdfFrom Chaos to Clarity - A Framework to Maximize Design Impact.pdf
From Chaos to Clarity - A Framework to Maximize Design Impact.pdf
matthewjdoty
 
Xiaomi Flash Tool Free Download 2025 for All Versions
Xiaomi Flash Tool Free Download 2025 for All VersionsXiaomi Flash Tool Free Download 2025 for All Versions
Xiaomi Flash Tool Free Download 2025 for All Versions
Designer
 
Security Monitor Pro 6.22 Crack Free Download
Security Monitor Pro 6.22 Crack Free DownloadSecurity Monitor Pro 6.22 Crack Free Download
Security Monitor Pro 6.22 Crack Free Download
Software
 
WinX HD Video Converter Deluxe 5.16.7.342 Crack + Key [Latest]
WinX HD Video Converter Deluxe 5.16.7.342 Crack + Key [Latest]WinX HD Video Converter Deluxe 5.16.7.342 Crack + Key [Latest]
WinX HD Video Converter Deluxe 5.16.7.342 Crack + Key [Latest]
Designer
 
FonePaw iPhone Data Recovery 8.5.0 Full Crack 2025
FonePaw iPhone Data Recovery 8.5.0 Full Crack 2025FonePaw iPhone Data Recovery 8.5.0 Full Crack 2025
FonePaw iPhone Data Recovery 8.5.0 Full Crack 2025
Designer
 
Debut Video Capture Pro 7.59 Crack + Registration Code 2025
Debut Video Capture Pro 7.59 Crack + Registration Code 2025Debut Video Capture Pro 7.59 Crack + Registration Code 2025
Debut Video Capture Pro 7.59 Crack + Registration Code 2025
Designer
 
Jjjkalmsnsxjxixnndixndnskaooashbd udnsnjsj
Jjjkalmsnsxjxixnndixndnskaooashbd udnsnjsjJjjkalmsnsxjxixnndixndnskaooashbd udnsnjsj
Jjjkalmsnsxjxixnndixndnskaooashbd udnsnjsj
sanskrutee2008
 
Windows Video Converter 2025 v9.7.0.0 Full Crack 2025
Windows Video Converter 2025 v9.7.0.0 Full Crack 2025Windows Video Converter 2025 v9.7.0.0 Full Crack 2025
Windows Video Converter 2025 v9.7.0.0 Full Crack 2025
Yahoo
 
Movavi Slideshow Maker 7.0.1 Crack + Activation Key [Latest]
Movavi Slideshow Maker 7.0.1 Crack + Activation Key [Latest]Movavi Slideshow Maker 7.0.1 Crack + Activation Key [Latest]
Movavi Slideshow Maker 7.0.1 Crack + Activation Key [Latest]
Developer
 
Apowersoft Video Editor 1.6.8.13 ApowerEdit Crack Download
Apowersoft Video Editor 1.6.8.13 ApowerEdit Crack DownloadApowersoft Video Editor 1.6.8.13 ApowerEdit Crack Download
Apowersoft Video Editor 1.6.8.13 ApowerEdit Crack Download
Designer
 
FontLab 7.2.0.7608 with Crack Free Download [Latest Version]
FontLab 7.2.0.7608 with Crack Free Download [Latest Version]FontLab 7.2.0.7608 with Crack Free Download [Latest Version]
FontLab 7.2.0.7608 with Crack Free Download [Latest Version]
Yahoo
 

CSS3 Transitions

  • 2. CSS Transitions Introduction CSS Transitions allow property changes in CSS values to occur smoothly over a specified duration. This smoothing animates the changing of a CSS value when triggered by a mouse click, focus or active state, or any changes to the element (including even a change on the element’s class attribute).
  • 3. Basic Rollover HTML: <a href="#" class="button">Transition me!</a> CSS: a.button { padding: 5px 10px; background: #4EBFBF; color: #fff; text-decoration: none; } a.button:hover { background: #690; }
  • 4. Basic Rollover with Transition HTML: <a href="#" class="button">Transition me!</a> CSS: a.button { padding: 5px 10px; background: #4EBFBF; color: #fff; text-decoration: none; -moz-transition-property: background; -moz-transition-duration: 0.3s; -moz-transition-timing-function: ease; } a.button:hover { background: #690; }
  • 5. Basic Rollover with Transition background: #4EBFBF; transition-property: background; transition-duration: 0.3s; transition-timing-function: ease; transition-property: The property to be transitioned (in this case, the background property) transition-duration: How long the transition should last (0.3 seconds) transition-timing-function: How fast the transition happens over time (ease)
  • 6. Timing Function transition-timing-function: ease; The timing function value allows the speed of the transition to change over time by defining one of six possibilities: ease, linear, ease-in, ease-out, ease-in-out, and cubic- bezier (which allows you to define your own timing curve).
  • 7. Timing Function If you slept through geometry in high school like I did, don’t worry. I recommend simply plugging in each of these timing function values to see how they differ. …For longer animations, the timing function you choose becomes more of an important piece of the puzzle, as there’s time to notice the speed changes over the length of the animation. When in doubt, ease (which is also the default value) or linear should work just fine for short transitions. - Dan Cederholm http://www.alistapart.com/articles/understanding-css3-transitions
  • 8. Shorthand Code transition-property: background; transition-duration: 0.3s; transition-timing-function: ease; Is the same as: transition: background 0.3s ease;
  • 9. Browser Compatibility The transition property is not supported in any browsers. Firefox 4 supports an alternative, the -moz-transition property. Safari and Chrome support an alternative, the -webkit-transition property. Opera supports an alternative, the -o-transition property. -webkit-transition: background 0.3s ease; -moz-transition: background 0.3s ease; -o-transition: background 0.3s ease; transition: background 0.3s ease;
  • 11. Wouldn’t it make more sense if the transition properties were placed in the :hover declaration, since that’s the trigger for the transition? The answer is that there are other possible states of an element besides :hover, and you’ll likely want that transition to happen on each of those without duplication. For instance, you may want the transition to also happen on the :focus or :active pseudo-classes of the link as well. Instead of having to add the transition property stack to each of those declarations, the transition instructions are attached to the normal state and therefore declared only once. - Dan Cederholm http://www.alistapart.com/articles/understanding-css3-transitions
  • 12. Transitioning multiple properties Let’s say that along with the background color, we also want to change the link’s text color and transition that as well. We can do that by stringing multiple transitions together, separated by a comma. Each can have their varying duration and timing functions . a.button { padding: 5px 10px; background: #4EBFBF; color: #fff; -webkit-transition: background .3s ease, color 0.2s linear; -moz-transition: background .3s ease, color 0.2s linear; -o-transition: background .3s ease, color 0.2s linear; transition: background .3s ease, color 0.2s linear; } a.button:hover, a.button:focus { color: #030; background: #690; } Text via: http://www.alistapart.com/articles/understanding-css3-transitions
  • 13. Transitioning multiple properties An alternative to listing multiple properties is using the all value. This will transition all available properties. Let’s drop all into our simple example instead of listing background and color separately. They’ll now share the same duration and timing function. a.button { padding: 5px 10px; background: #4EBFBF; color: #fff; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; } a.button:hover, a.button:focus { color: #030; background: #690; } Text via: http://www.alistapart.com/articles/understanding-css3-transitions
  • 14. Example B: div.exampletransitionb { CSS width: 520px; } div.exampletransitionb div { background-color: #ED8029; border-radius: 5px 5px 5px 5px; color: white; margin: 5px 0; padding: 5px; text-align: right; width: 100px; } div.exampletransitionb:hover div { width: 500px; } div.exampletransitionb div.ease { -moz-transition: all 3s ease 0s; <div class="exampletransitionb"> HTML } div.exampletransitionb div.linear { <div class="ease">ease</div> -moz-transition: all 3s linear 0s; } <div class="linear">linear</div> div.exampletransitionb div.easein { <div class="easein">ease-in</div> -moz-transition: all 3s ease-in 0s; <div class="easeout">ease-out</div> } <div class="easeinout">ease-in-out</div> div.exampletransitionb div.easeout { -moz-transition: all 3s ease-out 0s; </div> } div.exampletransitionb div.easeinout { -moz-transition: all 3s ease-in-out 0s; } Example via: http://www.css3.info/preview/css3-transitions/
  • 17. Further Reading www.alistapart.com/articles/understanding-css3-transitions http://www.w3schools.com/css3/css3_transitions.asp http://www.impressivewebs.com/css3-transitions-without-hover http://www.netmagazine.com/tutorials/more-efficient-css3-transitions http://en.wikipedia.org/wiki/12_basic_principles_of_animation