css3 new properties
play

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. CSS3 new properties http://www.w3schools.com/cssref 1

  2. shadows 2

  3. box-shadow TRY IT! The box-shadow property attaches one or more shadows to an element. 3

  4. text-shadow TRY IT! The text-shadow property adds shadow to text. 4

  5. gradient 5

  6. gradient (1) • Linear Gradients (goes down/up/left/right/diagonally) • Radial Gradients (de fi ned by their center) 6

  7. gradient (2) 7

  8. gradient (3) MORE 8

  9. transform 9

  10. transform (1) VIEW ALL 10

  11. transform (2) VIEW ALL 3D rotations! 11

  12. transform (3) VIEW ALL what is missing? Perspective ! The perspective property de fi nes 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 de fi ning the perspective property for an element, it is the CHILD elements that get the perspective view, NOT the element itself. 12

  13. transform (4) VIEW ALL 3D rotation without perspective 3D rotation with perspective Wow!! much better! 13

  14. transitions 14

  15. transition (1) VIEW ALL allows you to change property values smoothly over a given duration. The transition e ff ect will start when the speci fi ed CSS property changes value. this will change the width value on mouseover However, it is not a nice e ff ect! 15

  16. transition (2) VIEW ALL we need to add a transition! 16

  17. transition (3) VIEW ALL 17

  18. transition (4) VIEW ALL properties can be speci fi ed one by one shorthand 18

  19. transition (5) VIEW ALL example (ese2) 19

  20. transition (6) VIEW ALL cooler example! (ese3) 20

  21. transition (7) VIEW ALL result 21

  22. animations 22

  23. animation (1) VIEW ALL An animation lets an element gradually change from one style to another. To use CSS3 animation, you must fi rst specify some keyframes for the animation. Keyframes hold what styles the element will have at certain times. ese4 23

  24. animation (2) VIEW ALL 24

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend