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.

Show HN: gBoxShadow.js – Gravity-Sensing box-shadow for flat UI

43 pointsby Gigacoreover 9 years ago

4 comments

brianzelipover 9 years ago
That&#x27;s great, nice idea.<p>It worked for me, android 5.0.1. Had to turn off `auto-rotate` in my phone settings. Had to move my phone around sometimes for the shadow to catch up to a new rotation point; it had trouble sometimes (3&#x2F;5) catching up with the phone rotated upside down in portrait orientation.
评论 #10526249 未加载
评论 #10526031 未加载
评论 #10525471 未加载
hanniabuover 9 years ago
Do you have any live examples?<p>This caught my eye because I was thinking of making something similar to give a stereoscopic 3d effect like the Nintendo 3DS.
评论 #10525522 未加载
tedmistonover 9 years ago
Cool concept. Why do you need to define the color and blur distance twice?
评论 #10527680 未加载
PostThisTooFastover 9 years ago
&quot;The idea is to introduce real-world entity to UI&#x2F;UX&quot;<p>No, that should be REINTRODUCE. The whole point of a GUI is that it&#x27;s intuitive. The depicted controls should bear essential visual qualities of real-world objects, like buttons. Does the button look like it&#x27;s sticking out from the background? Then it&#x27;s not depressed. And so forth.<p>&quot;Flat&quot; UI is an idiotic regression that has set GUIs back decades. Come to think of it... did they ever suck as much as &quot;flat&quot; UI? Now we have entire interfaces that are an Easter-egg hunt. It&#x27;s pathetic.
评论 #10527778 未加载