Just a week ago I added JavaScript to all my site's MANY Flash animations, to deliver WebKit CSS animation instead for iPhone users. Some effects I wanted were glitchy and had to be avoided, but in the end the results were great.
There's no way this can do everything Flash can do--and certainly not as easily and with broad Mac-PC browser compatibility. Flash is around to stay and I'd love to see it made efficient enough for iPhone. But in the meantime, this is a nice option for your iPhone visitors!
Not so. CSS in no way compares to Flash, it's merely a tool that can fill in for certain purposes. But jagged and ugly it is not. I animate bitmaps on my site, and they remain smooth--and animated at a MUCH higher frame rate than I use in Flash (because high Flash framerates put a burden on dialup and cell-modem users). CSS animated at the full speed of your device--which on the iPhone means "smooth as glass"--with little change in file size no matter how long the animation is. Flash animation files get bigger the more frames you have (except when I use code-based procedural animation--which is time-consuming to develop and only suitable for certain things).
Someone visited my site from an iPod Touch and said the animation looked better than my Flash version. They're right--although some effects I did in Flash I didn't even attempt in WebKit CSS.
It doesn't have to be either-or. Flash and CSS are both nice tools, and I hope to see both have a long (and cross-platform) future on computers and phones alike.
There's no way this can do everything Flash can do--and certainly not as easily and with broad Mac-PC browser compatibility. Flash is around to stay and I'd love to see it made efficient enough for iPhone. But in the meantime, this is a nice option for your iPhone visitors!
CSS animation is suitable for fading and scrolling, the end... everything else is jagged and ugly.
Not so. CSS in no way compares to Flash, it's merely a tool that can fill in for certain purposes. But jagged and ugly it is not. I animate bitmaps on my site, and they remain smooth--and animated at a MUCH higher frame rate than I use in Flash (because high Flash framerates put a burden on dialup and cell-modem users). CSS animated at the full speed of your device--which on the iPhone means "smooth as glass"--with little change in file size no matter how long the animation is. Flash animation files get bigger the more frames you have (except when I use code-based procedural animation--which is time-consuming to develop and only suitable for certain things).
Someone visited my site from an iPod Touch and said the animation looked better than my Flash version. They're right--although some effects I did in Flash I didn't even attempt in WebKit CSS.
It doesn't have to be either-or. Flash and CSS are both nice tools, and I hope to see both have a long (and cross-platform) future on computers and phones alike.