Created
October 29, 2012 07:12
-
-
Save bhargav2785/3972073 to your computer and use it in GitHub Desktop.
box shadow demo 2 (door close effect)
This file contains hidden or 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
/** | |
* box shadow demo 2 (door close effect) | |
**/ | |
.demo{ | |
position: relative; | |
margin: 50px; | |
width:200px; | |
height: 200px; | |
background-color: steelblue; | |
line-height: 200px; | |
text-align: center; | |
font-size: 28px; | |
display: block; | |
-webkit-animation: myAnimation .5s ease-in-out infinite alternate; | |
} | |
@-webkit-keyframes myAnimation{ | |
from { box-shadow: none } | |
to { box-shadow: inset 100px 0px 0 0 rgba(255,255,255,.5), inset -100px 0px 0 0 rgba(255,255,255,.5) } | |
} |
This file contains hidden or 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
<div class="demo"></div> |
This file contains hidden or 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","fontsize":"60","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment