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.

Using easing for more than just CSS transitions

82 pointsby kilianover 5 years ago

7 comments

tobrover 5 years ago
&gt; And the way box shadows are implemented on the web is similar to gradients: they use a linear transition.<p>This is wrong. Yes, linear <i>gradients</i> are everywhere, even in nearly every professional graphic design tool, which is unfortunate since they are almost always the wrong choice. Box shadows, on the other hand, tend to be based on Gaussian blurs, which certainly doesn’t create a linear transition. This is also the way the CSS box-shadows spec say they should work: <a href="https:&#x2F;&#x2F;drafts.csswg.org&#x2F;css-backgrounds-3&#x2F;#shadow-blur" rel="nofollow">https:&#x2F;&#x2F;drafts.csswg.org&#x2F;css-backgrounds-3&#x2F;#shadow-blur</a>
评论 #21982884 未加载
评论 #21983511 未加载
vorticoover 5 years ago
As soon as I scrolled to the &quot;Easing for box shadows&quot; section where the examples were visible, my browser became laggy and dropped from 60Hz framerate to about 15Hz. Use these with caution, and test on a range of devices your visitors are using.
评论 #21982968 未加载
brummover 5 years ago
Thanks for featuring my little shadow tool! I&#x27;m glad it&#x27;s useful!<p>There&#x27;s a figma plugin out now as well: <a href="https:&#x2F;&#x2F;www.figma.com&#x2F;c&#x2F;plugin&#x2F;788830704169694737&#x2F;SmoothShadow" rel="nofollow">https:&#x2F;&#x2F;www.figma.com&#x2F;c&#x2F;plugin&#x2F;788830704169694737&#x2F;SmoothShad...</a>
评论 #21983051 未加载
jesuisuncaillouover 5 years ago
Ha ! Now I know why my linear gradients always felt weird !
mobilemidgetover 5 years ago
That green overlay stuff isn&#x27;t the most pleasant while trying to read the page I have to admit.
spegover 5 years ago
&gt; And the difference between these is pretty big:<p>Am I the only one who can&#x27;t tell the different between them (Easing for box shadows)?
评论 #21983504 未加载
drenvukover 5 years ago
On Firefox this website lags from the get go. I think you should have all your ducks in a row before offering advice on features related to what you&#x27;re talking about.
评论 #21987192 未加载