cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <div id="flag_1"></div>
<div id="flag_2"></div>
<div id="flag_3"></div>
<div id="star_1"></div>
<div id="star_2"></div>
<div id="star_3"></div>
<div id="star_4"></div>
<div id="star_5"></div>
<div id="floor"></div>
<div id="helmet_2"></div>
<div id="helmet">
  <div class="helmet_shadow"></div>
</div>
<div id="glass"></div>
<div id="head"></div>
<div id="neck"></div>
<div id="body_1"></div>
<div id="body_2"></div>
<div id="body_3"></div>
<div id="body_4"></div>
<div id="body_5"></div>
<div id="body_6"></div>
<div id="body_7"></div>
<div id="body_8"></div>
<div id="body_9"></div>
<div id="hand_1"></div>
<div id="hand_2"></div>
<div id="hand_3"></div>
<div id="hand_4"></div>
<div id="hand_5"></div>
<div id="floor_shadow"></div>
<div id="globe">
  <div id="continent_1"></div>
  <div id="continent_2"></div>
  <div id="continent_3"></div>
  <div id="continent_4"></div>
  <div id="continent_5"></div>
  <div id="continent_6"></div>
</div>
<div id="sky_star_1"></div>
<div id="sky_star_2"></div>
<div id="meteor"></div>
<div id="text">
  <p>Based on <a id="dribbble" href="https://dribbble.com/shots/991658-Earthling-2">Dribbble<a href="http://clement.saulnier.fr" id="hetic" target=_blank>CLEMENT</p>
</div>
            
          
!
            
              #dribbble {
  color: #EC4E8B;
}

#hetic {
  color: #6FB400;
}

#text {
  position: absolute;
  top: 570px;
  left: 660px;
}

a {
  text-decoration: none;
}

body {
  background: black;
  margin: 0;
  padding: 0;
  font-family: 'futura std';
  font-size: 16px;
  color: white;
}

/*CASQUE HAUT*/

#helmet {
  z-index: 9999;
  position: absolute;
  left: 325px;
  top: 150px;
  width: 152px;
  height: 73px;
  background: #F8F4E6;
  border-radius: 50% / 100% 100% 0 0;
  overflow: hidden;
}

#helmet:before {
  content: "";
  z-index: 9999;
  background: #F8F4E6;
  width: 80px;
  height: 120px;
  border-radius: 50%;
  position: absolute;
  top: -10px;
  left: 40px;
  transform: rotate(150deg);
}

/*CASQUE BAS*/

#helmet_2:before {
  content:"";
  width:100px;
  height: 17px;
  background: #F8F4E6;
  position: absolute;
  left: 52px;
  top: 0px;
  z-index: 2;
}

/*OMBRE DU CASQUE BAS*/

#helmet_2 {
  content: "";
  width: 60px;
  height: 17px;
  background: #B6AE91;
  position: absolute;
  left: 325px;
  top: 266px;
  z-index: 3;
}

/*VISIERE*/

#glass {
  width: 145px;
  height: 45px;
  background: #33311F;
  position: absolute;
  left: 328.5px;
  top: 223px;
}

/*TETE*/

#head {
  position: absolute;
  left: 375px;
  top: 209px;
  width: 45px;
  height: 70px;
  background: #EBE723;
  border-radius: 50% / 20% 20% 0 0;
  transform: rotate(90deg);
}

.helmet_shadow {
  background: #B6AE91;
  width: 50px;
  height: 72px;
  border-radius: 100% 0 0;
  position:absolute;
  top: 2px;
  left: 0px;
  z-index: 3;
}

/*OMBRE TETE*/

#head:before {
  content: "";
  position: absolute;
  left: 0px;
  top: 35px;
  width: 45px;
  height: 40px;
  background: #A09844;
  border-radius: 50% / 40% 40% 0 0;
}

/*SOL*/

#floor {
  width: 100%;
  height: 64px;
  background: #F8F4E6;
  position: absolute;
  top: 500px;
  z-index: -1002;
}

/*COU*/

#neck {
  width: 75px;
  height: 5px;
  background: #353321;
  box-shadow: -1px 2px 10px 3px #1F1E0F  inset;
  position: absolute;
  top: 285px;
  left: 360px;
}

/*CORPS
----------------
RECTANGLE HAUT BLANC*/

#body_1 {
  width: 115px;
  height: 19px;
  background: #F8F4E6;
  position: absolute;
  top: 288px;
  left: 395px;
}

/*CARRE HAUT BLANC*/

#body_1:before {
  content: "";
  width: 50px;
  height: 50px;
  background: #F8F4E6;
  position: absolute;
  top: 0;
  left: 0;
}

/*CARRE HAUT OMBRE*/

#body_1:after {
  content: "";
  width: 65px;
  height: 21px;
  background: #B6AE91;
  position: absolute;
  top: 19px;
  left: 50px;
}

/*CARRE HAUT GAUCHE FONCE*/

#body_2 {
  width: 50px;
  height: 50px;
  background: #B6AE91;
  position: absolute;
  top: 288px;
  left: 345px;
  border-radius: 10px 0 0 0;
}

/*DEMI CERCLE FONCE*/

#body_2:before {
  content: "";
  width: 48px;
  height: 100px;
  background: #B6AE91;
  position: absolute;
  left: -36px;
  top: 0px;
  border-radius: 0 50px 50px 0;
  transform: rotate(180deg);
}

/*RECTANGLE FONCE MILIEU*/

#body_3 {
  width: 92px;
  height: 20px;
  background: #4E4A2B;
  position: absolute;
  top: 338px;
  left: 354px;
}

/*RECTANGLE OMBRE FONCE MILIEU*/

#body_4 {
  width: 42px;
  height: 20px;
  background: #33311F;
  position: absolute;
  top: 338px;
  left: 354px;
}

/*RECTANGLE MILIEU FONCE*/

#body_4:before {
  content: "";
  width: 42px;
  height: 10px;
  background: #B6AE91;
  position: absolute;
  top: 20px;
  left: px;
}

/*RECTANGLE MILIEU CLAIRE*/

#body_4:after {
  content: "";
  width: 50px;
  height: 10px;
  background: #F8F4E6;
  position: absolute;
  left: 42px;
  top: 20px;
}

/*RECTANGLE BAS FONCE*/

#body_5 {
  width: 42px;
  height: 10px;
  background: #33311F;
  position: absolute;
  top: 368px;
  left: 354px;
}

/*RECTANGLE BAS CLAIRE*/

#body_5:before {
  content: "";
  width: 50px;
  height: 10px;
  background: #4E4A2B;
  position: absolute;
  top: 0px;
  left: 42px;
}

/*GROS RECTANGLE FONCE*/

#body_5:after {
  content: "";
  background: #B6AE91;
  height: 85px;
  width: 92px;
  position: absolute;
  top: 10px;
}

/*RECTANGLE CLAIRE OMBRE*/

#body_6 {
  width: 40px;
  height: 85px;
  background: #F8F4E6;
  position: absolute;
  top: 378px;
  left: 405px;
  z-index: 100;
}

/*PETIT CARRE BLANC CLAIRE*/

#body_6:before {
  content: "";
  width: 20px;
  height: 20px;
  background: #F8F4E6;
  position: absolute;
  left: -10px;
}

/*PETIT TRIANGLE CLAIRE*/

#body_6:after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent #F8F4E6 transparent transparent;
  position: absolute;
  top: 20px;
  left: -10px;
}

/*RECTANGLE BAS FONCE*/

#body_7 {
  width: 92px;
  height: 10px;
  background: #33311F;
  position: absolute;
  top: 462px;
  left: 354px;
  z-index: 101;
}

/*RECTANGLE BAS CLAIRE*/

#body_7:before {
  content: "";
  width: 42px;
  height: 10px;
  background: #4E4A2B;
  position: absolute;
  left: 50px;
  z-index: 101;
}

/*GRAND RECTANGLE BAS CLAIRE*/

#body_8 {
  width: 92px;
  height: 40px;
  background: #F8F4E6 ;
  position: absolute;
  left: 354px;
  top: 472px;
  z-index: 1;
}

/*MOYEN RECTANGLE BAS FONCE OMBRE*/

#body_8:before {
  content: "";
  width: 52px;
  height: 50px;
  background: #B6AE91 ;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 1;
}

/*QUART DE CERCLE TRES FONCE*/

#body_9 {
  background: #5B5637;
}

#body_9 {
  width: 49.5px;
  height: 47px;
  border-radius: 100% 0 0;
  position:absolute;
  top: 339px;
  left: 307px;
  z-index: 3;
  transform: rotate(270deg);
  z-index: 0;
}

/*HAND
----------------
CARRE OMBRE HAUT */

#hand_1 {
  width: 26px;
  height: 19px;
  background: #B6AE91;
  position: absolute;
  top: 288px;
  left: 510px;
  
}

/*CARRE FONCE BAS */

#hand_1:before {
  content: "";
  width: 26px;
  height: 21px;
  background: #383624;
  position: absolute;
  top: 19px;
  left: 0px;
  
}

/*RECTANGLE FONCE MILIEU*/

#hand_1:after {
  content: "";
  width: 8px;
  height: 41px;
  background: #383624;
  position: absolute;
  left: 25px;
  top: -1px;
}

/*TRIANGLE CLAIRE MAIN*/

#hand_2:before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0px 0px 15px;
  border-color: transparent transparent transparent #383624;
  position: absolute;
  left: 0px;
  top:  35px;
  z-index: -10;
}

/*RECTANGLE ARRONDIE MAIN CLAIRE*/

#hand_2 {
  width: 15px;
  height: 50px;
  background: #B6AE91;
  position: absolute;
  top: 278px;
  left: 543px;
  z-index: -99;
  border-radius: 8px 0 0 0px;

}

/*RECTANGLE ARRONDIE CLAIRE HAUT*/

#hand_2:after {
  content: "";
  width: 28px;
  height: 20px;
  background: #B6AE91;
  position: absolute;
  border-radius: 10px 10px 0 0;
  z-index: 100;
}

/*RECTANGLE OMBRE MAIN FONCE MILIEU*/

#hand_3 {
  height: 37px;
  width: 5px;
  background: #383624;
  position: absolute;
  top: 291px;
  left: 554px;
  z-index: 100;
  
}

/*RECTANGLE DEUX ARRONDIES CLAIRE*/

#hand_3:before {
  content: "";
  background: #B6AE91;
  width: 22px;
  height: 49px;
  position: absolute;
  top: -12px;
  left: 22px;
  border-radius: 10px 0px 10px 0px;
}

/*DEMI CERCLE CLAIRE MAIN*/

#hand_4 {
  width: 12px;
  height: 12px;
  background: #B6AE91;
  position: absolute;
  left: 0px;
  top: 290px;
  left: 559px;
  border-radius: 0 0 10px 10px;
  z-index: 10;
}

/*GRAND RECTANGLE FONCE*/

#hand_5 {
  height: 50px;
  width: 58px;
  background: #383624;
  position: absolute;
  top: 278px;
  left: 541px;
  z-index: -1000;
  border-radius: 10px 0 10px 10px;
}

/*BATON DRAPEAU*/

#flag_1 {
  height: 363px;
  width: 5px;
  background: #AFA78B;
  position: absolute;
  top: 165px;
  left: 570px;
  z-index: -1001;
}

/*CARRE FONCE*/

#flag_1:before {
  content: "";
  width: 60px;
  height: 60px;
  background: #002664;
  position: absolute;
  left: 5px;
}

/*PREMIERE BANDE*/

#flag_1:after {
  content: "";
  width: 150px;
  height: 20px;
  background: #BB133E;
  position: absolute;
  left: 5px;
  top: 0.3px;
  z-index: -10;
}

/*DEUXIEME BANDE*/

#flag_2 {
  width: 150px;
  height: 20px;
  background: white;
  position: absolute;
  top: 185px;
  left: 575px;
  z-index: -10001;
}

/*TROISIEME BANDE*/

#flag_2:before {
  content: "";
  width: 150px;
  height: 20px;
  background: #BB133E;
  position: absolute;
  top: 20px;
  left: 0px;
  z-index: -10001;
}

/*QUATRIEME BANDE*/

#flag_2:after {
  content: "";
  width: 150px;
  height: 18px;
  background: white;
  position: absolute;
  top: 40px;
}

/*CINQUIEME BANDE*/

#flag_3 {
  width: 150px;
  height: 18px;
  background: #BB133E;
  position: absolute;
  top: 242px;
  left: 575px;
  z-index: 100;
}

/*STAR*/

#star_1 {
  position: absolute;
  top: 174px;
  left: 580px;
  display: block;
  color: red;
  width: 0px;
  height: 0px;
  border-right:  10px solid transparent;
  border-bottom: 7px  solid white;
  border-left:   10px solid transparent;
  transform:    rotate(35deg);
  z-index: 1000;
}

#star_1:before {
    position: absolute;
    display: block;
    color: blue;
    top: 0px;
    left: -10px;
    width: 0px;
    height: 0px;
    border-right: 10px solid transparent;
    border-bottom: 7px solid white;
    border-left: 10px solid transparent;
    transform: rotate(75deg);
    content: '';
}
   
#star_1:after {
    position: absolute;
    display: block;
    color: red;
    top: 0px;
    left: -10px;
    width: 0px;
    height: 0px;
    border-right: 10px solid transparent;
    border-bottom: 7px solid white;
    border-left: 10px solid transparent;
    transform:      rotate(-70deg);
    content: '';
}

/*2 STAR*/

#star_2 {
  position: absolute;
  top: 174px;
  left: 610px;
  display: block;
  color: red;
  width: 0px;
  height: 0px;
  border-right:  10px solid transparent;
  border-bottom: 7px  solid white;
  border-left:   10px solid transparent;
  transform:    rotate(35deg);
  z-index: 1000;
}

#star_2:before {
    position: absolute;
    display: block;
    color: blue;
    top: 0px;
    left: -10px;
    width: 0px;
    height: 0px;
    border-right: 10px solid transparent;
    border-bottom: 7px solid white;
    border-left: 10px solid transparent;
    transform: rotate(75deg);
    content: '';
}
   
#star_2:after {
    position: absolute;
    display: block;
    color: red;
    top: 0px;
    left: -10px;
    width: 0px;
    height: 0px;
    border-right: 10px solid transparent;
    border-bottom: 7px solid white;
    border-left: 10px solid transparent;
    transform:      rotate(-70deg);
    content: '';
}

/*3 STAR*/

#star_3 {
  position: absolute;
  top: 191px;
  left: 595px;
  display: block;
  color: red;
  width: 0px;
  height: 0px;
  border-right:  10px solid transparent;
  border-bottom: 7px  solid white;
  border-left:   10px solid transparent;
  transform:    rotate(35deg);
  z-index: 1000;
}

#star_3:before {
    position: absolute;
    display: block;
    color: blue;
    top: 0px;
    left: -10px;
    width: 0px;
    height: 0px;
    border-right: 10px solid transparent;
    border-bottom: 7px solid white;
    border-left: 10px solid transparent;
    transform: rotate(75deg);
    content: '';
}
   
#star_3:after {
    position: absolute;
    display: block;
    color: red;
    top: 0px;
    left: -10px;
    width: 0px;
    height: 0px;
    border-right: 10px solid transparent;
    border-bottom: 7px solid white;
    border-left: 10px solid transparent;
    transform:      rotate(-70deg);
    content: '';
}

/*4 STAR*/

#star_4 {
  position: absolute;
  top: 210px;
  left: 580px;
  display: block;
  color: red;
  width: 0px;
  height: 0px;
  border-right:  10px solid transparent;
  border-bottom: 7px  solid white;
  border-left:   10px solid transparent;
  transform:    rotate(35deg);
  z-index: 1000;
}

#star_4:before {
    position: absolute;
    display: block;
    color: blue;
    top: 0px;
    left: -10px;
    width: 0px;
    height: 0px;
    border-right: 10px solid transparent;
    border-bottom: 7px solid white;
    border-left: 10px solid transparent;
    transform: rotate(75deg);
    content: '';
}
   
#star_4:after {
    position: absolute;
    display: block;
    color: red;
    top: 0px;
    left: -10px;
    width: 0px;
    height: 0px;
    border-right: 10px solid transparent;
    border-bottom: 7px solid white;
    border-left: 10px solid transparent;
    transform:      rotate(-70deg);
    content: '';
}

/*5 STAR*/

#star_5 {
  position: absolute;
  top: 210px;
  left: 610px;
  display: block;
  color: red;
  width: 0px;
  height: 0px;
  border-right:  10px solid transparent;
  border-bottom: 7px  solid white;
  border-left:   10px solid transparent;
  transform:    rotate(35deg);
  z-index: 1000;
}

#star_5:before {
    position: absolute;
    display: block;
    color: blue;
    top: 0px;
    left: -10px;
    width: 0px;
    height: 0px;
    border-right: 10px solid transparent;
    border-bottom: 7px solid white;
    border-left: 10px solid transparent;
    transform: rotate(75deg);
    content: '';
}
   
#star_5:after {
    position: absolute;
    display: block;
    color: red;
    top: 0px;
    left: -10px;
    width: 0px;
    height: 0px;
    border-right: 10px solid transparent;
    border-bottom: 7px solid white;
    border-left: 10px solid transparent;
    transform:      rotate(-70deg);
    content: '';
}

/*OMBRE SOL*/

#floor_shadow {
  width: 400px;
  height: 10px;
  background: #4E4A2B;
  position: absolute;
  top: 512px;
  left: 0px;
}

#floor_shadow:before {
  content: "";
  width: 570px;
  height: 5px;
  background: #4E4A2B;
  position: absolute;
  top: 10px;
  left: 0px;
}

/*GLOBE*/

#globe:before {
  content: "";
  width: 220px;
  height: 120px;
  background: black;
  border-radius: 55% / 100% 100% 0 0;
  position: absolute;
  top: 50px;
  left: -50px;
  z-index: 10;
  opacity: 0.5;
  transform: rotate(270deg);
}

#globe {
  overflow: hidden;
  width: 220px;
  height: 220px;
  background: #3BCACE;
  border-radius: 50%;
  position: absolute;
  top: 30px;
  left: 30px;
}

#continent_1 {
	height: 40px;
	width: 102px;
  background: #6DB700;
  border-radius: 50% / 100% 100% 0 0;
  z-index: 100;
  position: absolute;
  top: 0px;
  left: 1px;;
  transform: rotate(210deg);
 
}

#continent_1:before {
  content: "";
  width: 100px;
  height: 50px;
  border-radius: 100px 0 0 0;
  background: #6DB700;
  position: absolute;
  left: -34px;
  top: 20px;
  transform: rotate(60deg);  
}

#continent_2 {
  width: 40px;
  height: 80px;
  background: #6DB700;
  position: absolute;
  top:   0px;
  left: 80px;
  z-index: 100;
}


#continent_2:before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 40px 40px 0;
  border-color: transparent #6DB700 transparent transparent;
  position: absolute;
  top: 80px;
}

#continent_3 {
  width: 40px;
  height: 120px;
  background: #A8D806;
  position: absolute;
  left: 120px;
  z-index: 999;
}

#continent_3:before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 25px 25px 0;
  border-color: transparent #A8D806 transparent transparent;
  border-radius: 0 0 0 100px;
  position: absolute;
  left: 30px;
  top: 120px;
  z-index: 999;
}

#continent_3:after {
  content: "";
  background: #A8D806;
  width: 24px;
  height: 120px;
  position: absolute;
  top: 0;
  left: 30px;
}

#continent_4 {
  height: 140px;
  width: 15px;
  background: #A8D806;
  position: absolute;
  left: 173px;
  top: 3px;
}

#continent_4:before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 40px 20px 0 0;
  border-color: #A8D806 transparent transparent transparent;
  position: absolute;
  left: 15px;
  top: 102px;
}

#continent_4:after {
  content :"";
  width: 32px;
  height: 120px;
  background: #A8D806;
  position: absolute;
  top: -19px;
  left: 14px;
}

#continent_5 {
  position: absolute;
  left: 140px;
  top: 40px;
  width: 22px;
  border-width: 25px 9px 0;
  border-style: solid;
  border-color: #3BCACE  transparent;
  z-index: 9999;
}

#continent_5:before {
  content: "";
  position: absolute;
  height: 0;
  width: 0;
  top: -40px;
  left: -10px;
  border-width: 0 22px 16px;
  border-style: solid;
  border-color: transparent transparent #3BCACE;
}

#continent_6 {
  width: 30px;
  height: 20px;
  border-radius: 50% / 100% 100% 0 0;
  background: #FFFFFF;
  position: absolute;
  top: 210px;
  left: 105px;
}

/*SKY STAR*/
  
#sky_star_1 {
  width: 10px;
  height: 10px;
  background: #FFFFFF;
  position: absolute;
  top: 100px;
  left: 300px;
  border-radius: 50%;
}

#sky_star_1:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #FFFFFF;
  position: absolute;
  top: 100px;
  left: 200px;
  border-radius: 50%;
}

#sky_star_1:after {
  content: "";
  width: 4px;
  height: 4px;
  background: #FFFFFF;
  position: absolute;
  top: 230px;
  left: -150px;
  border-radius: 50%;
}

#sky_star_2 {
  width: 9px;
  height: 9px;
  background: #FFFFFF;
  position: absolute;
  top: 40px;
  left: 350px;
  border-radius: 50%;
}

#sky_star_2:before {
  content: "";
  width: 5px;
  height: 5px;
  background: #FFFFFF;
  position: absolute;
  top: 50px;
  left: 100px;
  border-radius: 50%;
}

#sky_star_2:after {
  content: "";
  width: 2px;
  height: 2px;
  background: #FFFFFF;
  position: absolute;
  top: 230px;
  left: -120px;
  border-radius: 50%;
}

/*METEOR

#meteor:before {
  content: "";
  position: absolute;
  left: 8px;
  top: -2px;
  width: 12px;
  height: 6px;
  background: #842A1C;
  border-radius: 50%;
}

#meteor {
  width: 20px;
  height: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 200px;
  left: -20px;
  -webkit-animation: anim 2s infinite linear;
  z-index: 999;
  transform: rotate(45deg);
}

@-webkit-keyframes anim{
  0% {transform: translateX(0); opacity: 0.2;}
  50% {transform: translateX(500px) translateY(100px); opacity: 0.6;}
  100% {transform: translateX(1000px) translateY(250px); opacity: 0;}
}
*/
            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console