Skip to content

Instantly share code, notes, and snippets.

@iamstarkov
Forked from anonymous/dabblet.css
Created November 11, 2013 19:31
Show Gist options
  • Save iamstarkov/7418968 to your computer and use it in GitHub Desktop.
Save iamstarkov/7418968 to your computer and use it in GitHub Desktop.
most flexible arrow
/**
* most flexible arrow
*/
.arrow {
width: 100px;
height: 200px;
position: relative;
overflow: hidden;
border-color: red;
}
.arrow:hover {
border-color: green;
}
.arrow::before {
content: '';
position: absolute;
top: 0;
left: 0;
margin-left: -100%;
width: 141.42%; height: 70.71%;
transform: rotate(-45deg) translateY(29%);
border: 5px solid #333;
box-sizing: border-box;
border-color: inherit;
/*
background: red;
*/
}
<div class="arrow"></div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment