Special Effects and Animation
WHAT YOU WILL LEARN IN THIS CHAPTER:
- Adding shadows and reflections
Creating CSS Gradients
You can use the Safari-supported function -webkit-gradient() to create a “virtual” gradient image and define it as an image URL parameter. Here’s the syntax for a linear gradient:
-webkit-gradient(linear, startPoint, endPoint, from(color), color-stop(percent, color), to(color))
The linear parameter defines the type of gradient. The startPoint and endPoint parameters define the start and end points of the gradient and are typically represented by ...