Skip to content

Instantly share code, notes, and snippets.

@Em-AK
Created March 2, 2015 17:08
Show Gist options
  • Save Em-AK/796d40a8df13138b4699 to your computer and use it in GitHub Desktop.
Save Em-AK/796d40a8df13138b4699 to your computer and use it in GitHub Desktop.
Animer un robot en JQuery
<!DOCTYPE html>
<head>
<style>
div {
height: 150px;
width: 300px;
margin: 0 auto;
}
.antenne {
width: 5px;
height: 0;
border: 5px solid transparent;
border-top: 10px solid #777;
border-bottom: 80px solid #888;
}
.cerveau {
background: radial-gradient(circle, white 15%, transparent 40%), #cc5;
background-size: 75px 150px;
height: 150px;
width: 150px;
border-radius: 60px 60px 10px 10px;
border-bottom: 40px solid #666;
}
.torse {
height: 0;
width: 140px;
border-top: 300px solid #bc6;
border-left: 75px solid transparent;
border-right: 75px solid transparent;
border-radius: 20px 20px 100px 100px;
}
.roulette {
height: 40px;
width: 40px;
background: #ccc;
border-radius: 40px;
border: 15px solid #999;
}
</style>
</head>
<body>
<div class="antenne"></div>
<div class="cerveau"></div>
<div class="torse"></div>
<div class="roulette"></div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment