JSFiddle - React, Tailwind, and code Playground
by JamesKyle
HTML
<link href='http://fonts.googleapis.com/css?family=Satisfy' rel='stylesheet' type='text/css'>
<div class="header">
<h1>Odd Ball</h1>
<h2>Using CSS Border Radius</h2>
</div>
<div class="oddball"></div>
<div class="message">Psst! Over here! Look at me!</div>
<!-- IGNORE -->
<div class="sharing bottom left plain">You think that's cool? Why not follow me? <br/><br/><div class="addthis_toolbox addthis_default_style"><a class="addthis_button_twitter_follow_native" tf:screen_name="thejameskyle"></a></div><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js"></script></div>
CSS
body {
position: relative;
z-index: 0;
padding: 0px;
font-family: 'Satisfy', cursive;
background: #1a2435;
}
.header {
position: fixed;
top: 0px;
left: 0px;
margin: 20px;
color: #FFF;
text-shadow: rgba(0,0,0,0.1) 0px 1px 0px;
text-align: center;
float: left;
height: 200px;
background: #da4300;
border-radius: 100px 250px 250px 100px/100px;
box-shadow: #da4300 0px 0px 100px;
box-sizing: border-box;
border: #dad200 solid 15px;
}
.header h1 {
font-size: 100px;
line-height: 150px;
color: #fff;
text-shadow: rgba(255,255,255,0.8) 0px 0px 15px;
}
.header h2 {
margin-top: -30px;
}
.stage {
width: 100%;
height: 400px;
}
.oddball {
position: relative;
z-index: 500;
width: 300px;
height: 200px;
margin: 0px auto;
top: 100px;
background-color: #fff;
border-radius: 150px 150px 100px 100px/125px 125px 75px 75px;
box-shadow: rgba(0,0,0,0.1) 0px 1px 0px;
-webkit-animation: ballDrop infinite 0.5s linear;
}
.message {position: relative; width: 100px; margin:auto; top: 50px;left: 85px;}
@-webkit-keyframes ballDrop {
0% {
width: 30px;
height: 30px;
border-radius: 15px;
margin-top: -20px;
}
25% {
width: 30px;
height: 10px;
border-radius: 15px 15px 10px 10px/12.5px 12.5px 7.5px 7.5px;
margin-top: 10px;
}
50% {
width: 40px;
height: 10px;
border-radius: 20px/5px;
margin-top: 10px;
}
75% {
width: 30px;
height: 20px;
border-radius: 15px 15px 10px 10px/12.5px 12.5px 7.5px 7.5px;
margin-top: 0px;
}
100% {
width: 30px;
height: 30px;
border-radius: 15px;
margin-top: -20px;
}
}
/**** IGNORE ****/
.sharing {font-family: 'Helvetica Neue', Helvetica, Arial, Sans-Serif;padding:...