Making iOS 7 squircles using CSS3(thecodeplayer.com)
thecodeplayer.com
Making iOS 7 squircles using CSS3
http://thecodeplayer.com/walkthrough/css3-squircles
11 comments
Yeah I'm looking at my app icons and they're squares with rounded corners [1].
Not sure if the author is lumping in iOS 7 for clicks or if he's got some fancy European version of iOS.
[1] http://ua-mac.org/wp-content/uploads/2013/09/iOS-7-Styled-Ap... (hope this isn't someone recreating it...)
Not sure if the author is lumping in iOS 7 for clicks or if he's got some fancy European version of iOS.
[1] http://ua-mac.org/wp-content/uploads/2013/09/iOS-7-Styled-Ap... (hope this isn't someone recreating it...)
[deleted]
There's also this article that has quite a detailed analysis of the rounded corners of iOS7 icons http://www.mani.de/backstage/?p=483
Reminds me a lot between the G1 and G3 curvature functions from Autodesk Alias (http://www.youtube.com/watch?v=GSIIU03NGlY). More control points are used for more curvature continuity (see also http://en.wikipedia.org/wiki/Freeform_surface_modelling).
This is probably the best analysis that I've seen of the iOS 7 icon shape: http://blog.mikeswanson.com/post/62341902567/unleashing-gene...
(I am slightly biased, though.)
(I am slightly biased, though.)
That's much better than the "superellipse" formula that was going around a few weeks ago. It was a good try, but it was pretty imprecise (based on an image that was too low-res to accurately compare).
Nice! One minor tweak that reduces redundancy in the CSS: You can set 'background-color: inherit' 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's :before/:after.
As someone who is learning front-end, the way this tutorial presented is really valuable to me. Standard tutorials too often miss the 'whys' for your actions, and more. It's great to see the decision making and fine tuning done live.
I had the same thought, the editing of the css and html was more valuable to me than the actual tutorial.
You kids and your Squircles! In my day, all we had were Round Rects
http://www.folklore.org/StoryView.py?story=Round_Rects_Are_E...
http://www.folklore.org/StoryView.py?story=Round_Rects_Are_E...
Mouseover effects are neat for mouse users. I see on mobile the mouseover happens on touch/press. Assuming your icons are linking somewhere, is this useful for mobile or just for mouse folks?
Who coined the phrase 'squircle". Are these not superellipses[1]?
[1] http://en.wikipedia.org/wiki/Superellipse
[1] http://en.wikipedia.org/wiki/Superellipse
"Squircle, the superellipse with n = 4, a = b = 1"
Wasn't a squircle the name for the control pad on Zune?
I thought Nokia 'owned' the squircle http://interuserface.net/2011/06/own-a-shape/
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?
[deleted]
very cool, thanks for this. btw -- to make the jumpiness disappear on the hover effect, add:
.icons a, .icons a:before, .icons a:after { -webkit-backface-visibility: hidden; }
.icons a, .icons a:before, .icons a:after { -webkit-backface-visibility: hidden; }
looks good
Edit: inserted bracketed qualifier after reading cheeaun's article.