Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version (github.com)
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
27 comments
[ 5.7 ms ] story [ 67.4 ms ] threadDesign is about solving problems.
A menu is suppose to help you to quickly find and get to a specific section of your site.
Why do I have to click on a thing to reveal the menu even though on my laptop there is enough space to show it all? And then I have to move my mouse all to the other side of the screen?
Who is this for?
Nothing wrong with experimenting with CSS, but avoid ‘dribbblizing’ your designs if you intend to ship it to users who use your site for information or to get a job done.
Edit: commenting more on the iventions.com website where this effect is in use.
This effect imitates a spotlight, which is cited on the page and quite relevant for a company in the arts domain
is the same as
142vmax
Just saying :-)
And there's more than "minimal number of interactions" functionality. People generally like good looking stuff. While it may be superfluous, it may feel more pleasing than yet another dark gray text on a light grey square. It may even help remembering navigation, since it's easier to remember deviating design.
But since the original implementation is also broken, I guess that's OK?
We really have a low bar for quality these days. I hope this won't be used anywhere that's relevant.