Skip to content

Instantly share code, notes, and snippets.

@bhargav2785
Created October 29, 2012 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhargav2785/3972073 to your computer and use it in GitHub Desktop.
Save bhargav2785/3972073 to your computer and use it in GitHub Desktop.
box shadow demo 2 (door close effect)
/**
* 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) }
}
<div class="demo"></div>
{"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