cssAudio - ActiveCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatspinnerstartv

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.

            
              <h1>One div DORAEMON</h1>
<p>hover me?</p>
<div class="dora"></div>
            
          
!
            
              body {background:#3FBF50;font-family:sans-serif;}
h1 { margin:1em auto;text-align:center;color:#fff; }
p { margin:1em auto;text-align:center;color:#fff; }

.dora {
  cursor: pointer;
  font-size:20px;
  width:10em;
  height:9.9em;
  margin:2em auto 10em;
  position:relative;
  border-radius:50%;
  background:#fff;/*face*/
  box-shadow:
    /*leg L*/
    2.5em 10.7em 0 -3.5em #fff,
    2.5em 10.9em 0 -3.2em #ddd,
    2.5em 10.9em 0 -3.1em #000,
    /*hand R*/
    -5.9em 4.3em 0 -3.5em #fff,
    -5.7em 4.4em 0 -3.2em #ddd,
    /*bell*/
    0 5.5em 0 -4.5em #dd0,
    0 5.5em 0 -4.4em #000,
    /*neck*/
    0 1.2em 0 -1em #000,
    0 2em 0 -1.3em #d00,
    0 2.1em 0 -1.3em #000,
    /*body*/
    0 7.1em 0 -1.8em #f8f8f8,/*body inner*/
    0 7.1em 0 -1.2em #26f,
    /*arm R*/
    -4.6em 5.0em 0 -3.8em #15e,
    -3.3em 5.4em 0 -4em #15e,
    /*leg R*/
    -1.3em 10.8em 0 -3.6em #26f,
    -1.3em 11.8em 0 -3.6em #eee,
    /*arm L*/
    3.2em 5.9em 0 -4.0em #26f,
    3.6em 6.0em 0 -4.0em #26f,
    3.9em 6.1em 0 -4.0em #26f,
    4.0em 6.2em 0 -4.0em #26f,
    4.1em 6.3em 0 -4.0em #26f,
    4.2em 6.4em 0 -4.0em #26f,
    4.3em 6.5em 0 -4.0em #26f,
    /*hand L*/
    5.4em 7.1em 0 -4.1em #eee,
    /*head*/
    0 1em 0 1em #26f inset,
    /*outline*/
    0 7.1em 0 -1.1em #000,/*body*/
    0 0 0 0.1em #000,/*head*/
    -5.7em 4.4em 0 -3.1em #000,/*hand R*/
    5.4em 7.1em 0 -4.0em #000,/*hand L*/
    -1.3em 11.8em 0 -3.5em #000,/*leg R*/
    /*arm L*/
    3.2em 5.9em 0 -3.9em #000,
    3.6em 6.0em 0 -3.9em #000,
    3.9em 6.1em 0 -3.9em #000,
    4.0em 6.2em 0 -3.9em #000,
    4.1em 6.3em 0 -3.9em #000,
    4.2em 6.4em 0 -3.9em #000,
    4.3em 6.5em 0 -3.9em #000,
    /*arm R*/
    -4.6em 5.0em 0 -3.7em #000,
    -3.3em 5.4em 0 -3.9em #000,
    /*leg R*/
    -1.3em 10.8em 0 -3.5em #000,
    0 0 0 0 transparent;/* --- */
}

.dora:after {
  font-size:1em;
  display:block;
  width:1em;
  height:1em;
  position:absolute;
  top:3em;
  left:4.5em;
  border-radius:50%;
  content:"|";
  line-height:1;
  color:transparent;
  text-shadow:
    0 0em 0 #000,/*nose line*/
    0 0.74em 0 #000,/*nose line*/
    0 0 0 transparent;/* --- */
  ;
  text-align:center;
  line-height:2.8;
  background:#fff;/*nose highLight*/
  box-shadow:
    -0.1em 0 0 0.3em #c00 inset,/*nose*/
    /*eye L*/
    0.9em -1.5em 0 -0.4em #fff,
    1em -1.3em 0 -0.2em #000,
    1.1em -1.3em 0 0.5em #fff,/*eye white*/
    1.1em -1.3em 0 0.6em #333,/*eyeline*/
    /*eye R*/
    -1.1em -1.5em 0 -0.4em #fff,
    -1em -1.3em 0 -0.2em #000,
    -1em -1.3em 0 0.5em #fff,/*eye white*/
    -1em -1.3em 0 0.6em #333,/*eyeline*/
    0 0 0 0 transparent;/* --- */
}
.dora:before {
  font-size:1em;
  width:5em;
  height:2.5em;
  display:block;
  margin:5em auto;
  position:absolute;
  top:1em;
  left:2.5em;
  content:"——";
  color:transparent;
  letter-spacing:-0.26em;
  text-shadow:
    3em -2em 0 #000,/*hige*/
    3em -2.5em 0 #000,
    3em -3em 0 #000,
    -3em -2em 0 #000,/*hige*/
    -3em -2.5em 0 #000,
    -3em -3em 0 #000,
    0 0 0 transparent;/* --- */
  ;
  text-align:center;
  border-radius:0 0 50% 50% / 0 0 100% 100%;
  background:#d33;/*mouse*/
  box-shadow:
    0 2em 0em -1em #c00 inset,/*mouse*/
    0 6.2em 0 0 #f8f8f8,/*pocket*/
    0 6.2em 0 0.1em #333,/*pocket*/
    0 0 0 0 transparent;/* --- */
}

/* tansition */
.dora,
.dora:before,
.dora:after {
  -webkit-transform: translate3d(0,0,0);
  -webkit-transition:0.5s;
  -moz-transform: translate3d(0,0,0);
  -moz-transition:0.5s;
  transform: translate3d(0,0,0);
  transition:0.5s;
}
.dora:hover,
.dora:hover:before,
.dora:hover:after {
  border-radius: 0;
  box-shadow:none;
  -webkit-transform: translate3d(0,0,0);
  -moz-transform: translate3d(0,0,0);
  transform: translate3d(0,0,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