This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example 16 — transition-timing-function with cubic-bezier() values */ | |
/* From Beginning HTML5 and CSS3 — The Web Evolved http://thewebevolved.com/ */ | |
body { | |
width: 80%; | |
max-width: 42em; | |
margin: auto; | |
font: 1em/1.5 Georgia, serif; | |
} | |
h1 { | |
font-weight: normal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example 15 — transition-timing-funtion presets (Figure 12-20) */ | |
/* From Beginning HTML5 and CSS3 — The Web Evolved http://thewebevolved.com/ */ | |
body { | |
width: 80%; | |
max-width: 42em; | |
margin: auto; | |
font: 1em/1.5 Georgia, serif; | |
} | |
h1 { | |
font-weight: normal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example 14 — Controlling the duration of a transition with transition-duration (Figure 12-18) */ | |
/* From Beginning HTML5 and CSS3 — The Web Evolved http://thewebevolved.com/ */ | |
body { | |
width: 80%; | |
max-width: 42em; | |
margin: auto; | |
font: 1em/1.5 Georgia, serif; | |
} | |
h1 { | |
font-weight: normal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example 13 — Faking animating to/from auto (Figure 12-17) */ | |
/* From Beginning HTML5 and CSS3 — The Web Evolved http://thewebevolved.com/ */ | |
/* Comment out transition while editing CSS ;) */ | |
figure .box { | |
-webkit-transition: all .4s ease-out; | |
-moz-transition: all .4s ease-out; | |
-ms-transition: all .4s ease-out; | |
-o-transition: all .4s ease-out; | |
transition: all .4s ease-out; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example 12 — backface-visibility (Figure 12-15) */ | |
/* From Beginning HTML5 and CSS3 — The Web Evolved http://thewebevolved.com/ */ | |
/* Comment out transition while editing CSS ;) */ | |
body { | |
width: 80%; | |
max-width: 42em; | |
margin: auto; | |
font: 1em/1.5 Georgia, serif; | |
} | |
h1 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example 11 — Changing transforms with a 3D transform-origin (Figure 12-14) */ | |
/* From Beginning HTML5 and CSS3 — The Web Evolved http://thewebevolved.com/ */ | |
/* Comment out transition while editing CSS ;) */ | |
figure div, figure span { | |
-webkit-transition: all 1s; | |
-moz-transition: all 1s; | |
-ms-transition: all 1s; | |
-o-transition: all 1s; | |
transition: all 1s; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example 10 — Changing transforms with a 2D transform-origin (Figure 12-13) */ | |
/* From Beginning HTML5 and CSS3 — The Web Evolved http://thewebevolved.com/ */ | |
/* Comment out transition while editing CSS ;) */ | |
figure div, figure span { | |
-webkit-transition: all 1s; | |
-moz-transition: all 1s; | |
-ms-transition: all 1s; | |
-o-transition: all 1s; | |
transition: all 1s; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example 9 — perspective and transform:perspective() (Figure 12-12) */ | |
/* From Beginning HTML5 and CSS3 — The Web Evolved http://thewebevolved.com/ */ | |
/* Comment out transition while editing CSS ;) */ | |
figure .box { | |
-webkit-transition: all 1s; | |
-moz-transition: all 1s; | |
-ms-transition: all 1s; | |
-o-transition: all 1s; | |
transition: all 1s; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example 8 — transform: matrix() (Figure 12-10 and 12-11) */ | |
/* From Beginning HTML5 and CSS3 — The Web Evolved http://thewebevolved.com/ */ | |
/* Comment out transition while editing CSS ;) */ | |
#matrix1 div, | |
#matrix2 div { | |
width: 100px; | |
height: 100px; | |
border: 3px solid #000; | |
border-radius: .5em; | |
background: #fff; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Example 7 — transform: skew (Figure 12-7) */ | |
/* From Beginning HTML5 and CSS3 — The Web Evolved http://thewebevolved.com/ */ | |
/* Comment out transition while editing CSS ;) */ | |
#skew1 div, #skew1 span { | |
-webkit-transition: all 1s; | |
-moz-transition: all 1s; | |
-ms-transition: all 1s; | |
-o-transition: all 1s; | |
transition: all 1s; | |
} |