3 ms·
I had the exact same thought: How to do this in CSS? Please follow-up on this thread with any discoveries or learnings, would be interesting and cool to learn
by metadat 4y ago
I had the exact same thought: How to do this in CSS?
Please follow-up on this thread with any discoveries or learnings, would be interesting and cool to learn how to replicate the nice soft curve for web assets. Depending on how many different semi-reasonable approaches exist, this subject and analysis would also make for a compelling and blog article.
Edit: Thank you Charles - wow you're so quick to have unearthed and replied with squircle resources in the time it took for me to compose the three sentences above.
p.s. CharlesW: thanks for your helpful and informative comments in general, I consistently look forward to reading your comments whenever I see one. Cheers and happy holidays!
- CharlesW 4y agoI really appreciate the kind words. Happy holidays to you and yours!
- kitsunesoba 4y agoIt's not CSS, but for cases where it makes sense to export assets (e.g. SVGs or PNGs) Sketch has squircles as an option for corner curvature on roundrects, calling it "smooth corners" (v.s. "round corners"). As far as I can see Figma does not offer this, but I am not well versed in Figma so the option may just be hiding in some obscure panel.