Show HN: Versatile Metallic Finish for CSS
metallicss.com
metallicss.com
I never would have imagined you could use a repeating gradient effect to produce a brushed metal texture. That's crazy clever, and it's also crazy how it works equally well for rounded and rectangular buttons.
The use of `filter` make it look nicer but other than that there's not much original here. Maybe try abusing nested borders, gradients and shadows until you can achieve the same thing with CSS alone. The JS to render the image blob is creative.
Also elements with a fixed height (or `line-height`) get tricky with dynamic content, linebreaks, etc. Maybe find a way around that. (Cool demo, thanks for sharing)
I do have a nitpick though -- I'm always bothered by whenever shadows or reflections operate in a way that makes no physical sense.
And in this case, there's a funny "wobble" of the reflections on the left and right edges. From inside out, the horizon goes way down, then up, then back down again... which suggests an awfully bizarre (and likely physically impossible?) rippling shape around the edges.
Hope this is constructive feedback -- would love to see it without the side wobbles/ripples!
I’m just imagining the dialogue boxes asking for permission to use the camera to show me a button.
Naturally, it didn't catch on ;)
A similar thing was done in iOS 6 with brushed metal reflecting based on the gyrosensor: https://www.youtube.com/shorts/c9X7D87uJ7Q
My client wants a "Bronze, Silver, and Gold" button to represent membership levels, and this will be perfect!
In case the reference is too niche: https://www.expression-web-tutorials.com/interactive-buttons...
Is this the first hint of that style of UI coming back in fashion? It seems possibly overdue with the trend towards rounding, shadowing, and texturing everything the last few years.
Relevant in a way I didn’t appreciate when I read this as a late teen:
https://www.theonion.com/u-s-dept-of-retro-warns-we-may-be-r...
It's there, but you can't see it because the rule requires JavaScript to view the rule.
It just seems a very strange way of going about demoing a CSS library.
In this specific case, one should be able to view the default demo without JS because it's a CSS library/demo and not a JS one. You can (and should) progressively enhance it with JS.