I want to cut out a triangle shape if a Button is hover like in this picture:
I use for my site bootstrap so here is a example for my navbar: http://www.bootply.com/oJeavrQoH6
I hope you all understand what I want to do.
I want to cut out a triangle shape if a Button is hover like in this picture:
I use for my site bootstrap so here is a example for my navbar: http://www.bootply.com/oJeavrQoH6
I hope you all understand what I want to do.
I know this is not the answer you wanted as it's not perfectly clean but I think you'll have to cut out the arrow in the image you posted and set it as a background image in the :after pseudo element in this code:
http://www.bootply.com/hGoUdtM0vk
nav ul li a:hover:after {
content:"";
display: block;
position: absolute;
top: 0;
left: 50%;
-wekit-transform: translateX(-50%);
-moz-transform: translateX(-50%);
-o-transform: translateX(-50%);
transform: translateX(-50%);
background-image: url(http://wallpoper.com/images/00/31/33/51/black-background_00313351.jpg);
background-attachment: fixed;
height: 15px;
width: 40px;
}
Use multiple linear gradients (IE10+).
For example http://www.bootply.com/zwpEtQD5dY