Last active
August 29, 2015 14:02
-
-
Save weishai/5f641f27bb13f580e36f to your computer and use it in GitHub Desktop.
css3 for arrow with shadow
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
.arrow{ | |
width: 48px; | |
height: 48px; | |
background-color: #08c; | |
box-shadow: 1px 1px 4px #888; | |
transform: rotate(45deg); | |
-webkit-transform: rotate(45deg); | |
position: absolute; | |
left: -24px; | |
top: -24px; | |
} | |
.wrap{ | |
position:relative; | |
margin: 40px; | |
width: 60px; | |
height: 60px; | |
overflow: hidden; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div class="wrap"> | |
<div class="arrow"></div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment