{"by":"momciloo","descendants":38,"id":46925811,"kids":[46932793,46928246,46927871,46930874,46931319,46941098,46933548,46932255,46927594,46933931,46935078,46929811,46930576,46934885,46932275,46944498,46932315,46930941,46930332,46944704,46931767,46929790],"score":141,"text":"Two clip-paths, over the navigation:<p>- The first clip-path is a circle (top-left corner)\n- The second clip-path is a polygon, that acts like a ray (hardcoded, can be improved)<p>The original work by Iventions Events <a href=\"https:&#x2F;&#x2F;iventions.com&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;iventions.com&#x2F;</a> uses JavaScript, but I found CSS-only approach more fun<p>Here&#x27;s a demo and the codebase: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;Momciloo&#x2F;fun-with-clip-path\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;Momciloo&#x2F;fun-with-clip-path</a>","time":1770486327,"title":"Show HN: I saw this cool navigation reveal, so I made a simple HTML+CSS version","type":"story","url":"https://github.com/Momciloo/fun-with-clip-path"}