-
-
Save ZeeAgency/2359292 to your computer and use it in GitHub Desktop.
Shadow Triangle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span></span> | |
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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