Skip to content

Instantly share code, notes, and snippets.

@MadaraUchiha
Created June 6, 2012 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save MadaraUchiha/2884702 to your computer and use it in GitHub Desktop.
Save MadaraUchiha/2884702 to your computer and use it in GitHub Desktop.
Compressed Oval Animation
/* Compressed Oval Animation */
#oval {
background: url(http://www.hdwallpapersarena.com/wp-content/uploads/2012/05/sunset_landscape.jpg);
height: 300px;
width: 300px;
margin: 20px;
border-radius: 150px;
-webkit-animation: compress 2s infinite;
box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5), inset 0 50px 50px rgba(255,255,255,0.5);
border: 5px solid black;
}
@-webkit-keyframes compress {
0% { }
75% {
height: 200px;
border-radius: 150px / 100px;
margin-top: 70px;
background-position: 0 -150px;
box-shadow: 0 50px 30px 0 rgba(0, 0, 0, 0.5),
inset 0 10px 20px rgba(255,255,255,0.5);
border-width: 2px 5px;
}
100% { }
}
<div id="oval">
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment