Skip to content

Instantly share code, notes, and snippets.

@stevebest
Created June 6, 2012 20:09
Show Gist options
  • Select an option

  • Save stevebest/2884417 to your computer and use it in GitHub Desktop.

Select an option

Save stevebest/2884417 to your computer and use it in GitHub Desktop.
CSS3 Twitter bird
<!doctype html>
<html>
<head>
<style>
​.blue {
background: #52ade5;
}
​.white {
background: #fff;
}
.circle {
border-radius: 145px;
}
.big {
width: 290px;
height: 290px;
}
.small {
width: 100px;
height: 100px;
}
#body,
#head,
#beak,
#wing,
#feather-top,
#feather-middle,
#feather-bottom,
.circle {
position: absolute;
}
#wing, #beak {
overflow: hidden;
}
#head {
left: 187px;
top: 70px;
}
#wing {
left: 75px;
top: 70px;
width: 140px;
height: 175px;
}
#feather-bottom {
left: 15px;
top: 70px;
}
#feather-middle {
top: 40px;
}
#beak {
left: 80px;
top: 0px;
width: 50px;
height: 50px;
}
</style>
</head>
<body>
<div id="body">
<div class="big blue circle">
<div class="big white circle" style="left: -80px; top: -20px;"></div>
<div class="big white circle" style="left: 50px; top: -150px;"></div>
</div>
<div id="wing">
<div id="feather-bottom">
<div class="small blue circle"></div>
<div class="big white circle" style="left: -145px; top: -215px;"></div>
</div>
<div id="feather-middle">
<div class="small blue circle"></div>
<div class="big white circle" style="left: -80px; top: -230px;"></div>
</div>
<div id="feather-top">
<div class="small blue circle"></div>
<div class="small blue circle" style="left: 50px; top: 59px;"></div>
<div class="big white circle" style="left: -25px; top: -215px"></div>
</div>
</div>
<div id="head">
<div id="beak">
<div id="beak-lower">
<div class="big blue circle" style="left: -204px; top: -220px"></div>
<div class="big white circle" style="left:-145px; top: -261px;"></div>
</div>
<div id="beak-upper">
<div class="small blue circle" style="left: -55px; top: -65px;"></div>
<div class="big white circle" style="left:-175px; top: -269px;"></div>
</div>
</div>
<div class="small blue circle"></div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment