Safari Reference Library Apple Developer
Search

Introduction

Safari visual effects allow you to create sophisticated graphical user interfaces for web applications for the desktop and iPhone OS. The visual effects available range from image effects using gradients, masks, and reflections, to more complex 2D and 3D effects.

These CSS and the DOM visual effects extensions allow you to add 2D and 3D graphics to your web applications, create complex animations, and generate smooth transitions when element properties—such as position or color—change. When you combine these visual effects with DOM mouse and touch events, you can create interactive applications, similar to native applications, that run in Safari.

Some of the properties and classes described in this book are proposed W3C standards or Apple extensions. Properties in CSS that begin with -webkit are usually proposed standards—the -webkit prefix will be dropped when they are approved. Similarly, JavaScript classes that begin with WebKit are also proposed standards or Apple extensions.

Important: Not all CSS properties and JavaScript classes described in this book are supported on all Safari platforms. Refer to the respective reference documents, Safari CSS Reference and Safari DOM Additions Reference for support level and availability details.

Who Should Read This Document

You should read this document if you want to use visual effects in your web content and web applications—if you are creating web applications for either Safari on the desktop or iPhone OS. Definitely read this document if you are creating a custom web application for iPhone.

Organization of This Document

The articles in this book are as follows:

See Also

There are a variety of other resources for Safari web content developers in the ADC Reference Library.

For details on properties and classes discussed in this book, refer to these visual effects reference documents:

If you are creating content for Safari on iPhone OS, also read these documents:

If you want to use the JavaScript media APIs, then you should read these documents:

If you are combining visual effects with touch events on iPhone OS, see this sample code:

If you want to read the WebKit W3C proposals, then go to http://www.webkit.org/specs.




Last updated: 2010-05-26

Did this document help you? Yes It's good, but... Not helpful...