Chapter 9. Motion and color

 

This chapter covers
  • Making elements semitransparent with the opacity property
  • Making colors semitransparent with RGBA
  • A new, more intuitive way to specify color: HSL and HSLA
  • Natural user interaction with transitions and animation

 

In this chapter, we’ll look at some of the snazzier aspects of CSS3—features that are much loved by graphic designers.

Colors and opacity

In the beginning, the web was black and white, but these days there aren’t many websites that don’t make extensive use of color. It’s unlikely the web will revert to black and white any time soon, so it’s a good thing CSS3 includes several new ...

Get Hello! HTML5 & CSS3: A user-friendly reference guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.