Last active
August 29, 2015 14:00
-
-
Save franklingu/18ed9f245df08b48cc9c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <!--The following may not work on old browsers or IE--> | |
| <head> | |
| <!--Google font for the arm: j--> | |
| <link href='https://fonts.googleapis.com/css?family=Poller+One' rel='stylesheet' type='text/css'> | |
| <style> | |
| //the overall div for the robot | |
| .robot { | |
| position: relative; | |
| left: 200px; | |
| } | |
| // the antenna part | |
| .beep{ | |
| width: 5px; | |
| height: 0px; | |
| // the following 3 lines form the main part of antenna | |
| border: 5px solid transparent; | |
| border-top: 10px solid #777; | |
| border-bottom: 80px solid #888; | |
| // position | |
| position: relative; | |
| left: 140px; | |
| } | |
| @keyframes blink { | |
| 50% { | |
| background: radial-gradient(circle, red 15%, transparent 40%), #cc5; | |
| background-size: 75px 150px; | |
| } | |
| } | |
| @-webkit-keyframes blink { | |
| 50% { | |
| background: -webkit-radial-gradient(circle, red 15%, transparent 40%), #cc5; | |
| background-size: 75px 150px; | |
| } | |
| } | |
| @-moz-keyframes blink { | |
| 50% { | |
| background: -moz-radial-gradient(circle, red 15%, transparent 40%), #cc5; | |
| background-size: 75px 150px; | |
| } | |
| } | |
| .brain { | |
| // blink: animation name; 0.5s: animation duration; infinite: repeat forever; | |
| animation: blink 0.5s infinite; | |
| -webkit-animation: blink 0.5s infinite; | |
| -moz-animation: blink 0.5s infinite; | |
| // for stupid IE, and no "eye" effect | |
| background: #cc5; | |
| background: radial-gradient(circle, white 15%, transparent 40%), #cc5; | |
| background: -moz-radial-gradient(circle, white 15%, transparent 40%), #cc5; | |
| background: -webkit-radial-gradient(circle, white 15%, transparent 40%), #cc5; | |
| // the size of brain is 150*150, in this way we will be able to create two "eye"s in parallel | |
| background-size: 75px 150px; | |
| height: 150px; | |
| width: 150px; | |
| border-radius: 60px 60px 10px 10px; | |
| border-bottom: 40px solid #666; | |
| position: relative; | |
| left: 70px; | |
| } | |
| .torso { | |
| 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; | |
| } | |
| .left { | |
| font-family: 'Poller One', verdana, arial, sans-serif; | |
| font-weight: bold; | |
| font-size: 250px; | |
| color: #666; | |
| // rotate the "arm" | |
| transform: rotate(200deg); | |
| -webkit-transform: rotate(200deg); | |
| -moz-transform: rotate(200deg); | |
| position: relative; | |
| left: -190px; | |
| top: -320px; | |
| // place it one layer behind | |
| z-index: -1; | |
| } | |
| .right { | |
| font-family: 'Poller One', verdana, arial, sans-serif; | |
| font-weight: bold; | |
| font-size: 250px; | |
| color: #666; | |
| // first rotate around Y axis; then do normal 2-D rotation | |
| transform: scaleY(-1) rotate(20deg); | |
| -webkit-transform: scaleY(-1) rotate(20deg); | |
| -moz-transform: scaleY(-1) rotate(20deg); | |
| position: relative; | |
| left: 190px; | |
| top: -617px; | |
| z-index: -1; | |
| } | |
| .foot { | |
| height: 40px; | |
| width: 40px; | |
| background: #ccc; | |
| border-radius: 40px; | |
| border: 15px solid #999; | |
| position: relative; | |
| left: 110px; | |
| top: -10px; | |
| z-index: -1; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="robot"> | |
| <div class="beep"></div> | |
| <div class="brain"></div> | |
| <div class="torso"> | |
| <div class="left">j</div> | |
| <div class="right">j</div> | |
| </div> | |
| <div class="foot"></div> | |
| </div> | |
| </body> | |
| <!--That is all. Thanks for reading--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment