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 Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

Quick-add: + add another resource

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

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="head">    
  <div id="shera">
   <div class="l">
     <div class="eyes left"></div>
   </div>
   <div class="r">
     <div class="eyes right"></div>
   </div>
  </div> 
   <div id="red-l">
   </div>
   <div id="red-r">
   </div>   
  <div id="shera-2">
    <div id="smile">
    </div>
  </div>
</div>
            
          
!
            
              #head{
  border: solid 1px black;
  border-radius: 400px;
  height: 325px;
  width: 400px;
  margin: auto;
  padding-top: 75px;
  background: #FFECB7;
}
#shera{  
  border-radius: 100px;
  height: 200px;
  width: 250px;
  margin: auto;
  transition: 1s;
  display: block;
}
#shera-2{
  
}
.eyes{
  background: black;
  border-radius: 20px;
  height: 20px;
  width: 20px;
}
.l{
  float: left;
}
.r{
  float: right;
}
.l,.r{
  border: solid 1px black;
  border-radius: 100px;
  height: 150px;
  width: 85px;
  background: #FFF;
}
.left{
  margin: 100px 0 0 20px;
  float: left;
  transition: 1s;
}
.right{  
  margin: 100px 20px 0 0;
  float: right;
  transition: 1s;
}
#red-r,#red-l{
  background: #FEC2FF;
  height: 5px;
  width: 5px;
  border-radius: 10px;
  position: absolute;
  box-shadow: 30px 30px 30px 30px #FEC2FF;
  opacity: 0;
  transition: 1s;
}
#red-r{
  margin: 0 60px;}
#red-l{
  margin: 0 280px;}
#smile{
  border-bottom: solid 3px black;
  border-radius: 185px;
  height: 100px;
  width: 185px;
  margin: auto;
  transition: 1s;
}
            
          
!
            
              $('#shera').mouseout(function(event) {
  $('.left').css("margin","100px 0 0 20px");
  $('.right').css("margin","100px 20px 0 0");
  $('#smile').css("height","85px");
  $('#smile').css("width","185px");//#red-r,#red-l
  $('#red-r,#red-l').css("opacity","0");
});
$('#shera').mousemove(function(event) {
  $('.left').css("margin","50px 0 0 50px");
  $('.right').css("margin","50px 50px 0 0");
  $('#smile').css("height","1px");
  $('#smile').css("width","85px");
  $('#red-r,#red-l').css("opacity","1");
});
            
          
!
999px
Loading ..................

Console