Skip to content

Instantly share code, notes, and snippets.

@ZeeAgency
Forked from chriscoyier/dabblet.css
Created April 11, 2012 13:28
Show Gist options
  • Save ZeeAgency/2359292 to your computer and use it in GitHub Desktop.
Save ZeeAgency/2359292 to your computer and use it in GitHub Desktop.
Shadow Triangle
/* Shadow Triangle */
span {
display: inline-block;
width: 0;
height: 0;
border-left: 30px solid transparent;
border-right: 30px solid transparent;
border-bottom: 21px solid #BADA55;
-webkit-filter:
drop-shadow(0 2px 2px rgba(255,255,255,0.7))
drop-shadow(0 10px 4px rgba(0,0,0,0.5));
}
span:hover {
transition: all 0.2s ease;
transform: translateY(4px);
-webkit-filter:
drop-shadow(0 1px 1px rgba(0,0,0,0.5));
}
body {
padding: 50px;
}
<span></span>
{"view":"separate","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment