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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

IPhone 4 in pure CSS3

238 点作者 andrew_k超过 13 年前

18 条评论

kulkarnic超过 13 年前
Perhaps I'm missing the point: besides a cool demonstration for what CSS can do (when aided by JS), why is this a useful idea?<p>For anything practical, would one not be better off not being a purist, and using images etc? After all, image formats were meant to store graphics. I'm sure I'm missing something, since I've lately seen a lot of these "pure CSS" things. But what is it?<p>[Edit: apparently, it is meant exclusively as a demo. And it's pretty slick at that]
评论 #3418855 未加载
评论 #3419118 未加载
评论 #3418951 未加载
评论 #3418995 未加载
评论 #3418854 未加载
TjRus超过 13 年前
Hi! I'm developer of this iPhone. The reasons i've made it: 1. Challenge. I saw the icons in pure CSS and deside to make full iPhone with icons. 2. Demonstration of CSS3 posibilities (not all but many af them) 3. Inspiration. Many young developers write me and thanks me for inspire themto learn more, use more...<p>I titled it "..pure CSS3" because this iPhone is actually in pure CSS3, the JS part is for iPhone interaction. Without JS or with it - iPhone is anyway on pure CSS3.
willwashburn超过 13 年前
Perhaps I'm behind the times, but what tools do people use to make the icons like that in CSS3? Is it simply an art or can you start in photoshop and use some data there to help guide you along the way?
评论 #3418852 未加载
评论 #3418799 未加载
RKearney超过 13 年前
Why do people keep calling things "pure CSS" when they use JavaScript and HTML?
评论 #3418809 未加载
评论 #3418819 未加载
naithemilkman超过 13 年前
its cool but the title is misleading --&#62; 335 lines of Javascript code used
评论 #3419195 未加载
评论 #3419308 未加载
评论 #3418834 未加载
deepkut超过 13 年前
Despite the snide comments, this does demonstrate the power of CSS3, which I think was the designer's intention! On that note, NICE.
zalthor超过 13 年前
Anyone else notice the time displayed as local time? Not that its anywhere as cool as the rest of the demo, but I think its a really nice touch!
评论 #3419132 未加载
harryf超过 13 年前
Worth DOM inspecting, for example, the rays from the sun on the Weather app icon. Insane amounts of work have gone into this...
pothibo超过 13 年前
Very nice work. Love the details and the slider screen is a nice touch. Those iPhones in CSS are becoming more and more popular;) I made this 4 weeks ago, it's pretty much the same thing, but done differently.<p><a href="http://pothibo.github.com/iPhonePerspective/" rel="nofollow">http://pothibo.github.com/iPhonePerspective/</a>
jimmyhwang超过 13 年前
Wow, this is pretty sick. I wonder how much time it took to create this.
code_duck超过 13 年前
If anyone wants to see an alternative implementation, this one came to mind:<p><a href="http://alexw.me/ipad2/" rel="nofollow">http://alexw.me/ipad2/</a>
joshuahedlund超过 13 年前
Would love to see a follow-up post detailing how some of the more challenging aspects were accomplished/derived/realized.
fatalerrorx3超过 13 年前
Not to detract from the coolness of this demo, but it looks like garbage in IE 8 (what else is new)
quizbiz超过 13 年前
This is a beautiful resume.
bala79超过 13 年前
this is cool!. Good to know the higher level of possibilities of css3. awesome work!
its_so_on超过 13 年前
stick a flash app in there that uses your microphone, camera, speakers, over tha internetz, and kill skype
zyb09超过 13 年前
iPhone4 in CSS3? I predict this to be the highest upvoted submission on HN of all time.
评论 #3419122 未加载
alexhaefner超过 13 年前
(1) It's not pure CSS3, there's JS involved to handle events. Sure it's small, but it's not.<p>(2) The only real gripe is that the animation is not accurate to an actual iPhone. After the unlock there is a delay between the lock/title moving away and the icons moving in. Both items clear the screen before the other items enter. Also there's a fade on the lock screen items.<p>Demos like these are cool if they are well done, and correct. Otherwise they feel more like a gimmick. Having written webkit animations, all the added effect (the fades and timings) could be done with CSS3. So if you're gonna do it, do it well.<p>Now after the criticism, good job. I like that all the icons and font and screens are all HTML/CSS objects.
评论 #3418912 未加载
评论 #3418969 未加载