logoalt Hacker News

Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version

36 pointsby momcilootoday at 5:45 PM5 commentsview on HN

Two clip-paths, over the navigation:

- The first clip-path is a circle (top-left corner) - The second clip-path is a polygon, that acts like a ray (hardcoded, can be improved)

The original work by Iventions Events https://iventions.com/ uses JavaScript, but I found CSS-only approach more fun

Here's a demo and the codebase: https://github.com/Momciloo/fun-with-clip-path


Comments

swyxtoday at 8:53 PM

one thing i dislike about "good design" in general is that it usually takes away from information density and practical convenience in order to achieve "good design". this feels like a bad tradeoff. i wish that designers cared about making things more accessible and delightful rather than impressing fellow designers.

show 2 replies
flaburgantoday at 9:26 PM

It looks cool, but to have to navigate from one side of the screen to the opposite one is quite suboptimal

thekevantoday at 8:28 PM

I saw this on Twitter about an hour ago and was going build one as well. Nice work!