TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Making iOS 7 squircles using CSS3

56 pointsby _kushagraover 11 years ago

10 comments

didgeoridooover 11 years ago
Very nice effect, but there&#x27;s nothing squircley (?) about iOS 7 icons -- they&#x27;re just squares with [more gradually] rounded corners.<p>Edit: inserted bracketed qualifier after reading cheeaun&#x27;s article.
评论 #6571157 未加载
cheeaunover 11 years ago
There&#x27;s also this article that has quite a detailed analysis of the rounded corners of iOS7 icons <a href="http://www.mani.de/backstage/?p=483" rel="nofollow">http:&#x2F;&#x2F;www.mani.de&#x2F;backstage&#x2F;?p=483</a>
评论 #6572366 未加载
评论 #6572701 未加载
评论 #6571406 未加载
cvalleskeyover 11 years ago
Nice! One minor tweak that reduces redundancy in the CSS: You can set &#x27;background-color: inherit&#x27; on the :before and :after pseudo-classes for the icon links and it works the same way without having to apply the background-color on the element and it&#x27;s :before&#x2F;:after.
chiaroover 11 years ago
As someone who is learning front-end, the way this tutorial presented is really valuable to me. Standard tutorials too often miss the &#x27;whys&#x27; for your actions, and more. It&#x27;s great to see the decision making and fine tuning done live.
评论 #6571895 未加载
charlesismover 11 years ago
You kids and your Squircles! In my day, all we had were Round Rects<p><a href="http://www.folklore.org/StoryView.py?story=Round_Rects_Are_Everywhere.txt" rel="nofollow">http:&#x2F;&#x2F;www.folklore.org&#x2F;StoryView.py?story=Round_Rects_Are_E...</a>
josefrescoover 11 years ago
Mouseover effects are neat for mouse users. I see on mobile the mouseover happens on touch&#x2F;press. Assuming your icons are linking somewhere, is this useful for mobile or just for mouse folks?
andybakover 11 years ago
Who coined the phrase &#x27;squircle&quot;. Are these not superellipses[1]?<p>[1] <a href="http://en.wikipedia.org/wiki/Superellipse" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Superellipse</a>
评论 #6571006 未加载
评论 #6571647 未加载
评论 #6571938 未加载
评论 #6571468 未加载
Kiroover 11 years ago
So in Chrome for Mac the icons glitch with the pinch effect but it works fine on Chrome for Windows. Why is the difference between the two Chromes not more acknowledged?
douglee650over 11 years ago
very cool, thanks for this. btw -- to make the jumpiness disappear on the hover effect, add:<p>.icons a, .icons a:before, .icons a:after { -webkit-backface-visibility: hidden; }
silv3r_m00nover 11 years ago
looks good