TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Fast animation with iOS WebKit

61 点作者 dpearson超过 13 年前

5 条评论

ender7超过 13 年前
This kind of stuff is par for the course when developing for web iOS, sadly.<p>To get truly good easing functions, you usually have to write your own (the built-in ones in CSS are limited and rarely look good). Scrolling the page disables ALL transform repainting until the scroll has completed, so if you want to do anything fancy during a scroll you have to disable native scrolling and simulate it with scrollability (or something similar). iOS does not handle images well, especially high-res images (or many small images). Nor, sadly, does it handly opacity transforms well.<p>There are hacks to get around most of these limitations, but if you are, say, in a situation where you want to animate a series of images in a manner that involves opacity, you're going to get a royal headache. Think that's not that common? It happens more often than you'd think, usually in the form of fancy transitions between UI elements.
DenisM超过 13 年前
Comparing iScroll with Scrollability on iOS5, the former feel like gliding an object on the regular desk (in my case - iPhone 4), while the latter feels like air hockey on steroids. That is one makes scrolling stop too quickly, while the other makes it a bit too long. Both seem perfectly useable, and while scrollability feels a little bit better, I would never be motivated to develop something like this myself, iScroll feels perfectly adequate.<p>Perhaps a split-test is in order?
mikhuang超过 13 年前
I was playing with the new iPhone features page at <a href="http://apple.com/iphone/features" rel="nofollow">http://apple.com/iphone/features</a> on iPad running iOS 4 and it has several horizontal scrolling bits that seem to work quite well. swap_view.js is probably responsible for the scrolling but I can't quite figure out how it works, perhaps this could be a viable alternate method?
aaronbrethorst超过 13 年前
This is very impressive on iOS 5. Also impressive is the table view demo at <a href="http://joehewitt.github.com/scrollability/tableview.html" rel="nofollow">http://joehewitt.github.com/scrollability/tableview.html</a> -- the scrolling feels a bit off (it doesn't accelerate quite right), but this is <i>way</i> better than anything else out there.
MatthewPhillips超过 13 年前
Joe, why are you so obsessed with making the web look like iOS? Just curious.
评论 #3078106 未加载
评论 #3078021 未加载