"Leaves" demonstrates the performance benefits of using hardware accelerated CSS animations and transforms over pure JavaScript techniques to animate objects. It contains the "WithoutCSSExtensions" and "WithCSSExtensions" samples that both display colored leaves falling down. |
"WithoutCSS" uses a custom JavaScript object and the setTimeout function to animate the leaves. "WithCSSExtensions" uses the above CSS extensions to perform this animation. |
Using the Sample |
Place this sample’s files on your own webserver (eg. Mac OS X Personal Web Server). Open index.html in an iPhone or iPod touch running OS 2.0 or iPhone Simulator with iPhone OS 2.0 (/Developer/Platforms/AspenSimulator.platform/Developer/Applications). You should see colored leaves falling down. |
Feedback and Bug Reports |
Please send all feedback about this sample by using the Feedback form on the bottom of the sample's webpage. Please submit any bug reports about this sample to the Bug Reporting <http://developer.apple.com/bugreporter> page. |
Copyright (C) 2008 Apple Inc. All Rights Reserved. |
Last updated: 2008-05-08