문제

How do I make a custom shape button like this.
example: http://www.dennispkramer.com/index.html
I mean the button saying 'blog' and 'about'.

도움이 되었습니까?

해결책

The actual button is a block, like normal.

enter image description here

However, they've added #nav-mask which looks like this:

enter image description here

Giving the illusion the buttons are like this:

enter image description here

다른 팁

Those are not custom shapes. There is a mask behind the logo, in front of the menu items. There are some CSS tricks to create custom shapes like triangle, but for real custom shapes i would suggest to use SVG.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top