CSS3 new properties
1
http://www.w3schools.com/cssref
CSS3 new properties http://www.w3schools.com/cssref 1 shadows 2 - - PowerPoint PPT Presentation
CSS3 new properties http://www.w3schools.com/cssref 1 shadows 2 box-shadow TRY IT! The box-shadow property attaches one or more shadows to an element. 3 text-shadow TRY IT! The text-shadow property adds shadow to text. 4 gradient 5
1
http://www.w3schools.com/cssref
2
3
The box-shadow property attaches one or more shadows to an element.
TRY IT!
4
The text-shadow property adds shadow to text.
TRY IT!
5
6
7
8
MORE
9
10
VIEW ALL
11
VIEW ALL
3D rotations!
12
VIEW ALL
what is missing? Perspective! The perspective property defines how many pixels a 3D element is placed from the view. This property allows you to change the perspective on how 3D elements are viewed. N.B. When defining the perspective property for an element, it is the CHILD elements that get the perspective view, NOT the element itself.
13
VIEW ALL
3D rotation without perspective 3D rotation with perspective
Wow!! much better!
14
15
allows you to change property values smoothly over a given duration. The transition effect will start when the specified CSS property changes value.
VIEW ALL
this will change the width value on mouseover However, it is not a nice effect!
16
we need to add a transition!
VIEW ALL
17
VIEW ALL
18
VIEW ALL
properties can be specified one by one shorthand
19
VIEW ALL example (ese2)
20
VIEW ALL
cooler example! (ese3)
21
VIEW ALL
22
23
An animation lets an element gradually change from one style to another. To use CSS3 animation, you must first specify some keyframes for the animation. Keyframes hold what styles the element will have at certain times.
VIEW ALL ese4
24
VIEW ALL