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.

            
              <body>
			<div class="bearbox">
				<h1 class="heading"> BEAR CUB </h1>
				<span class="window-frame"> </span>
				<span class="window-frame bottom"> </span>
					<span class="window">
						  <span class="ear left shake">
							  <span class="inner-ear"></span>					
						  </span>
						  <span class="ear right wiggle">
							<span class="inner-ear"></span> 
						  </span>
						<span class="hair"></span>
						<span class="hair-border"> </span>		
						<span class="hair two right"> </span>
						<span class="hair-border right"> </span>
						<span class="head-border"> </span>
					     <span class="head">
						 	<span class="head-highlight">
								<span class="brown-eye left"> 
									<span class="blue-eye"> 
										<span class="black-eye">
											<span class="white-eye"></span>
										</span>
									</span>
								</span>
								<span class="brown-eye right">
									<span class="blue-eye">
										<span class="black-eye">
											<span class="white-eye"></span>
										</span>
									</span>
								</span>	
								<span class="snout">
									<span class="nose"> 
										<span class="nose-highlight"></span>
									</span>
									<span class="mouth"></span>
								</span>							  							 
							</span> 
						</span>
						<span class="hand wave"> 
							<span class="paws one"> </span>
							<span class="paws two"> </span>
							<span class="paws three"> </span>
							<span class="paws four"> </span>
							<span class="paws five"> </span>
							<span class="paw-pads"> </span>
						</span>
					</span>
			</div>
		</body>
				
</html>
            
          
!
            
              
span{
    display:inline-block;
}
body{
    margin: 0;
    background-color: #673AB7;

}
.heading{
    text-align: center;
    font-family: 'Londrina Sketch', cursive;
    font-size: 60px;
    color: yellow;
}
 .window-frame{
            height: 32px;
            width: 400px;
            border: 6px solid antiquewhite;
            position: absolute;
            left: 93px;
            top: 468px;
        }
.bearbox{
    height: 600px;
    width: 600px;
    margin: 0 auto;
    border: 1px solid transparent;
    position:relative;
    .window{
        height: 320px;
        width:350px;
        border-top-left-radius: 50%;
        border-top-right-radius: 50%;
        border: 7px solid antiquewhite;
        left: 116px;
        position: absolute;
        overflow:hidden;
        .ear{
         background-color:  #9b521d;
         height: 80px;
         width: 60px;
         border-radius: 50%;
         position: absolute;
         &.left{
             top: 123px;
             left: 72px;
             z-index: 3; 
             border: 6px solid  #4E342E;
             .inner-ear{
                 top: 15px;
                left: 10px;
                
             }
             animation: shake 0.3s linear infinite alternate-reverse;
         }
        &.right{
            top: 123px;
            left: 210px;
            border: 6px solid #4E342E;
            z-index: 3;
             .inner-ear{
                 top: 15px;
                left: 10px;
             }
            animation: wiggle 0.3s linear infinite alternate-reverse;
         }
         .inner-ear{
          background-color: #cf6d27;
          border-radius: 50%;
          height: 50px;
          width: 40px;
          position: absolute;         
         }

        }
        .hair{
         left: 173px; 
         width: 0;
         height: 0;
         border-left: 16px solid transparent;
         border-right: 16px solid transparent;
         border-bottom: 16px solid#9b521d;
         position: absolute; 
         top: 146px;
         left: 168px;
         transform: rotate(120deg);
         z-index: 3;
         &.right{
             left: 182px;
         }
        }
        .hair-border{      
            width: 0;
            height: 0;
            border-left: 30px solid transparent;
            border-right: 30px solid transparent;
            border-bottom: 30px solid #4E342E;
            position: absolute;
            top: 142px;
            left: 154px;
            transform: rotate(120deg);
            &.right{
                left: 170px;
            }
        }
        .head-border{
         background-color: #4E342E;
         width: 215px;
         height:195px;
         border-radius: 50%;
         top: 143px;
         position: absolute;
         left: 72px;
         z-index: 2;
        }
        .head{
         background-color:#924d1b;
         width: 200px;
         height: 180px;
         border-radius: 50%;
         top: 150px;
         position: absolute;
         left: 80px;
         overflow: hidden;
         z-index: 3;
         .head-highlight{
             background-color: #9b521d;
             width: 180px;
             height: 170px;
             position: absolute;
             left: 27px;
             top: -3px;
             border-radius: 50%;
         }
            .brown-eye{
                background-color: #ac5b20;
                width: 45px;
                height: 68px;
                border-radius: 50%;
                position: absolute;
                transform: rotate(25deg);
                top: 51px;
                &.left{
                    left: 7px;
                    .blue-eye{
                        background-color: #0b425b;
                        width: 15px;
                        height: 17px;
                        position:absolute;
                        top: 21px;
                        left: 15px;
                        border-radius: 50%;
                    }
                    .black-eye{
                        background-color: #000;
                        width: 10px;
                        height: 11px;
                        position: absolute;
                        top:  3px;
                        left:3px;
                        border-radius: 50%;
                    }
                    .white-eye{
                        background-color: #fff;
                        width: 5px;
                        height: 6px;
                        position: absolute;
                        top: -1px;
                        left: 4px;
                        border-radius: 50%;

                    }
                }
                &.right{
                    left: 95px;
                    transform: rotate(-25deg);
                    .blue-eye{
                        background-color: #0b425b;
                        width: 15px;
                        height: 17px;
                        position:absolute;
                        top: 21px;
                        left: 15px;
                        border-radius: 50%;
                    }
                    .black-eye{
                        background-color: #000;
                        width: 10px;
                        height: 11px;
                        position: absolute;
                        top:  3px;
                        left:3px;
                        border-radius: 50%;
                    }
                    .white-eye{
                        background-color: #fff;
                        width: 5px;
                        height: 6px;
                        position: absolute;
                        top: -1px;
                        left: 4px;
                        border-radius: 50%;

                    }
                }
                
            }

         .snout{
             height: 60px;
             width: 70px;
             border-radius: 47%;
             background-color: #cf6d27;
             position: absolute;
             top: 97px;
             left: 39px;
            //  transform: perspective(4em) rotateX(-30deg);
             .nose{
                 width: 22px;
                 height: 16px;
                 background-color: #171717;
                 position: absolute;
                 top: 15px;
                 left: 24px;
                 border-radius: 48%;
                 .nose-highlight{
                     background-color: #2e2e2e;
                     width: 20px;
                     height: 11px;
                     top: 0px;
                     left: 2px;
                     border-radius: 48%;
                     position: absolute;
                 }

             }
            .mouth{
            position: absolute;
            width: 40px;
            height: 13px;
            border-bottom: 8px solid antiquewhite;
            border-bottom-left-radius: 200px;
            border-bottom-right-radius: 200px;
            left: 17px;
            top: 35px;
            // transform: rotate(120deg);
            
            }
        
        }
         }
         .hand{
             height: 119px;
             width:60px;
             background-color:#9b521d;
             top: 260px;
             left: 20px;
             border-radius: 47%;
             position: absolute;
             border: 6px solid #4E342E;
             z-index: 10;
             transition: ease 0.4s all;
             animation: waves 0.3s ease-in-out infinite alternate-reverse;
             .paws{
              height: 10px;
              width: 8px;
              border-radius: 50%;
              background-color:#cf6d27;
              position: absolute;
              top: 32px;
              left: 7px;
              &.one{
                  top: 14px;
                  left: 12px;
              }
                &.two{
                    top: 5px;
                    left: 26px;
                }
                &.three{
                    top: 14px;
                    left: 40px;
                }
                &.four{
                    top: 27px;
                    left:46px;
                }
                &.five{
                    top: 28px;
                    left:7px;
                }
                



             }
            .paw-pads{
                height: 50px;
                width: 35px;
                position: absolute;
                top: 25px;
                background-color: #cf6d27;
                border-radius: 50%;
                left: 13px;
                


            }

              
         }

        }    
    }


@keyframes waves {
    0% {
        transform: rotate(-10deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    50%{
        transform: rotate(0deg)
    }
   
    75% {
        transform:rotate(5deg);
    }
    100% {
        transform:rotate(10deg);
    }
}
@keyframes wiggle {
    0% {
        transform: translate(3px, 5px);
    
    }
    100% {
        transform:translate(5px, 7px);
    }
    
}
@keyframes shake {
    0% {
        transform: translate(-4px, 5px);
    
    }
    100% {
        transform:translate(-5px, 7px);
    }
    
}
            
          
!
999px
Loading ..................

Console