Pen Settings

HTML

CSS

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.

+ add another resource

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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.

+ add another resource

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <div class="wrapper">
    <div class="seal">  
      <div class="head"></div>
      <div class="eye eye__left">
        <div class="eye eye__inner-left"></div>
      </div>
      <div class="eye eye__right">
          <div class="eye eye__inner-right"></div>
      </div>
      <div class="snout">
          <div class="nose"></div>
          <div class="nose__line"></div>
          <div class="nose__hears nose__hears--left"></div>
          <div class="nose__hears nose__hears--right"></div>
          <div class="mouth"></div>
      </div>
      <div class="body"></div>
      <div class="body__womb"></div>
    </div>
    <div class="ice">
        <div class="ice__circle"></div>
        <div class="ice__circle-shadow"></div>
        <svg class="ice__mask" data-name="ice" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 111">
          <path d="M191.87,2c6.79,5.09,10.63,10.87,10.63,17,0,20.43-42.63,37-95.22,37S12.06,39.43,12.06,19c0-6.13,3.84-11.91,10.63-17H3V113H213V2Z" transform="translate(-3 -2)"/>
        </svg>
    </div>
 </div>
 <div class="wrapper2">
    <div class="seal">  
      <div class="head"></div>
      <div class="eye eye__left">
        <div class="eye eye__inner-left"></div>
      </div>
      <div class="eye eye__right">
          <div class="eye eye__inner-right"></div>
      </div>
      <div class="snout">
          <div class="nose"></div>
          <div class="nose__line"></div>
          <div class="nose__hears nose__hears--left"></div>
          <div class="nose__hears nose__hears--right"></div>
          <div class="mouth"></div>
      </div>
      <div class="body"></div>
      <div class="body__womb"></div>
    </div>
    <div class="ice">
        <div class="ice__circle"></div>
        <div class="ice__circle-shadow"></div>
        <svg class="ice__mask" data-name="ice" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 111">
          <path d="M191.87,2c6.79,5.09,10.63,10.87,10.63,17,0,20.43-42.63,37-95.22,37S12.06,39.43,12.06,19c0-6.13,3.84-11.91,10.63-17H3V113H213V2Z" transform="translate(-3 -2)"/>
        </svg>
    </div>
 </div>
 <div class="wrapper3">
    <div class="seal">  
      <div class="head"></div>
      <div class="eye eye__left">
        <div class="eye eye__inner-left"></div>
      </div>
      <div class="eye eye__right">
          <div class="eye eye__inner-right"></div>
      </div>
      <div class="snout">
          <div class="nose"></div>
          <div class="nose__line"></div>
          <div class="nose__hears nose__hears--left"></div>
          <div class="nose__hears nose__hears--right"></div>
          <div class="mouth"></div>
      </div>
      <div class="body"></div>
      <div class="body__womb"></div>
    </div>
    <div class="ice">
        <div class="ice__circle"></div>
        <div class="ice__circle-shadow"></div>
        <svg class="ice__mask" data-name="ice" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 111">
          <path d="M191.87,2c6.79,5.09,10.63,10.87,10.63,17,0,20.43-42.63,37-95.22,37S12.06,39.43,12.06,19c0-6.13,3.84-11.91,10.63-17H3V113H213V2Z" transform="translate(-3 -2)"/>
        </svg>
    </div>
 </div>
 <div class="wrapper4">
    <div class="seal">  
      <div class="head"></div>
      <div class="eye eye__left">
        <div class="eye eye__inner-left"></div>
      </div>
      <div class="eye eye__right">
          <div class="eye eye__inner-right"></div>
      </div>
      <div class="snout">
          <div class="nose"></div>
          <div class="nose__line"></div>
          <div class="nose__hears nose__hears--left"></div>
          <div class="nose__hears nose__hears--right"></div>
          <div class="mouth"></div>
      </div>
      <div class="body"></div>
      <div class="body__womb"></div>
    </div>
    <div class="ice">
        <div class="ice__circle"></div>
        <div class="ice__circle-shadow"></div>
        <svg class="ice__mask" data-name="ice" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 111">
          <path d="M191.87,2c6.79,5.09,10.63,10.87,10.63,17,0,20.43-42.63,37-95.22,37S12.06,39.43,12.06,19c0-6.13,3.84-11.91,10.63-17H3V113H213V2Z" transform="translate(-3 -2)"/>
        </svg>
    </div>
 </div>
 <div class="wrapper5">
    <div class="seal">  
      <div class="head"></div>
      <div class="eye eye__left">
        <div class="eye eye__inner-left"></div>
      </div>
      <div class="eye eye__right">
          <div class="eye eye__inner-right"></div>
      </div>
      <div class="snout">
          <div class="nose"></div>
          <div class="nose__line"></div>
          <div class="nose__hears nose__hears--left"></div>
          <div class="nose__hears nose__hears--right"></div>
          <div class="mouth"></div>
      </div>
      <div class="body"></div>
      <div class="body__womb"></div>
    </div>
    <div class="ice">
        <div class="ice__circle"></div>
        <div class="ice__circle-shadow"></div>
        <svg class="ice__mask" data-name="ice" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 111">
          <path d="M191.87,2c6.79,5.09,10.63,10.87,10.63,17,0,20.43-42.63,37-95.22,37S12.06,39.43,12.06,19c0-6.13,3.84-11.91,10.63-17H3V113H213V2Z" transform="translate(-3 -2)"/>
        </svg>
    </div>
 </div>
 <div class="wrapper6">
    <div class="seal">  
      <div class="head"></div>
      <div class="eye eye__left">
        <div class="eye eye__inner-left"></div>
      </div>
      <div class="eye eye__right">
          <div class="eye eye__inner-right"></div>
      </div>
      <div class="snout">
          <div class="nose"></div>
          <div class="nose__line"></div>
          <div class="nose__hears nose__hears--left"></div>
          <div class="nose__hears nose__hears--right"></div>
          <div class="mouth"></div>
      </div>
      <div class="body"></div>
      <div class="body__womb"></div>
    </div>
    <div class="ice">
        <div class="ice__circle"></div>
        <div class="ice__circle-shadow"></div>
        <svg class="ice__mask" data-name="ice" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 210 111">
          <path d="M191.87,2c6.79,5.09,10.63,10.87,10.63,17,0,20.43-42.63,37-95.22,37S12.06,39.43,12.06,19c0-6.13,3.84-11.91,10.63-17H3V113H213V2Z" transform="translate(-3 -2)"/>
        </svg>
    </div>
 </div>
<p class="text">inspired by <a target="_blank" class="link" href="https://dribbble.com/shots/4513536-Arctic-seals?utm_source=Clipboard_Shot&utm_campaign=nannapaskesen&utm_content=Arctic%20seals&utm_medium=Social_Share">this</a></p>

              
            
!

CSS

              
                body {
  background-color: #fff;
}
div.wrapper{
	left: 20%;
	top: 45%;
	  .seal{
		animation-delay: 0.4s;
	  }
    .eye,
   .eye__inner-left,
   .eye__inner-right{
    	animation-delay: 1s;
	  }
}
div.wrapper2{
	left: 25%;
	top: 10%;
	z-index: 100;
	  .seal{
    	animation-delay: 0.5s;
   }
   .eye,
   .eye__inner-left,
   .eye__inner-right{
    	animation-delay: 2s;
	  }
}
div.wrapper3{
	left: 55%;
	top: 0;
	z-index: 10;
	 .seal{
    	animation-delay: 1s;
   	}
.eye,
.eye__inner-left,
.eye__inner-right{
	animation-delay: 1.8s;
  }
}
div.wrapper4{
	left: 50%;
	top: 60%;
	  .seal{
    	animation-delay: 1.2s;
   }
   .eye,
   .eye__inner-left,
   .eye__inner-right{
    	animation-delay: 2s;
	  }
}
div.wrapper5{
	left: 45%;
	top: 30%;
	z-index: 99999;
	  .seal{
    	animation-delay: 0.7s;
	     }
	.eye,
   .eye__inner-left,
   .eye__inner-right{
    	animation-delay: 2.5s;
	  }
}
div.wrapper6{
	left: 65%;
	top: 20%;
	z-index: 101;
	  .seal{
    	animation-delay: 0.2s;
   }
   .eye,
   .eye__inner-left,
   .eye__inner-right{
    	animation-delay: 1.7s;
	  }
}

div.wrapper,
div.wrapper4{
	width: 300px;
	height: 300px;
	position: absolute;
	margin: auto;
	overflow: hidden;
	z-index: 1000000;

}

.wrapper,
.wrapper2,
.wrapper3,
.wrapper4,
.wrapper5,
.wrapper6 {
  &:hover{
	  .seal{
	    transition: top 1s;
	    top: 100%;
	  	animation-name: jumpin;
	  	animation-fill-mode: backwards;
    	animation-duration: 1s;
    	animation-delay: 0s;
	  }
   }
   .eye{
	  	animation: twinkle  5s infinite ease-in-out;
	  }
	  .eye__inner-left,
	  .eye__inner-right{
	  	animation: twinkle-inner  5s infinite ease-in-out;
	  }
 }

  .seal{
  	transition: top 1s;
  	animation-name: jumpout;
	animation-duration: 1s;
	animation-delay: 1s;
	animation-fill-mode: both;
  	position: relative;
    left: 25%;
    width: 50%;
    height: 50%;
    top: 50px;
  }

  .eye{
		background-color: #000;
		width: 20%;
	    height: 20%;
	    border-radius: 50%;
	    position: absolute;
	    z-index: 9999;
	}
	.eye__left{
		top: 25%;
		left: 51%;

		.eye__inner-left{
			    width: 100%;
			    height: 100%;
			    overflow: hidden;
			    position: absolute;
			    top: -3px;
			    right: 0%;
			    bottom: 0%;
			    left: -9px;
			    transform-origin: 20% 100%;
			    transform: rotate(25deg) skewX(-5deg);
			    background-color: transparent;

		&:before {
			display: block;
		    border: solid 3px white;
		    width: 300%;
		    height: 300%;
		    border-radius: 50%;
		    transform: skewX(33deg);
		    content: '';
		}
		}
	}
	.eye__right{
		top: 25%;
		right: 51%;

		.eye__inner-right{
			    width: 100%;
			    height: 100%;
			    overflow: hidden;
			    position: absolute;
			    top: -3px;
			    right: 0%;
			    bottom: 0%;
			    left: -9px;
			    transform-origin: 20% 100%;
			    transform: rotate(25deg) skewX(-5deg);
			    background-color: transparent;

		&:before {
			display: block;
		    border: solid 3px white;
		    width: 300%;
		    height: 300%;
		    border-radius: 50%;
		    transform: skewX(33deg);
		    content: '';
		}
		}
	}

	.head{
		background-color: #c0c0c0;
		width: 100%;
    	height: 100%;
	    border-radius: 50%;
	    margin: 0 auto;
	    z-index: 10;
	}

	.snout{
		background-color: #d5d5d5;
	    width: 40%;
	    height: 25%;
	    border-radius: 45%;
	    position: absolute;
	    top: 50%;
	    left: 30%;

	    &:before{
    	    background-color: transparent;
		    width: 85%;
		    height: 110%;
		    border: 8px solid #c0c0c0;
		    border-radius: 45%;
		    position: absolute;
		    top: -25%;
		    left: -2.5%;
		    z-index: 1000;
		    content: ' ';
	    }
	}

	.nose{
		background-color: #000;
		width: 25%;
    	height: 25%;
	    border-radius: 50%;
	    position: absolute;
	    left: 37.5%;
	}

	.nose__line{
		height: 100%;
    	width: 4%;
	    background-color: black;
	    margin: auto;
	}

	.nose__hears--left,
	.nose__hears--left:before,
	.nose__hears--left:after,
	.nose__hears--right,
	.nose__hears--right:before,
	.nose__hears--right:after
	{
		width: 20px;
	    height: 20px;
	    border-left: 1px solid #000;
	    border-bottom: 1px solid #000;
	    border-radius: 20px 0 20px 0;
	    position: absolute;
	    z-index: 10000;
	}

	.nose__hears--left{
	    top: 5%;
	    left: 75%;
	    transform: rotate(35deg);
	    &:before{
		    left: 25%;
		    top: 37%;
		    content: ' ';
		    transform: rotate(15deg);
	    }
	    &:after{
	    	left: 45%;
		    top: 65%;
		    content: ' ';
		    transform: rotate(15deg);
	    }
	}

	.nose__hears--right{
	    top: 53%;
	    right: 75%;
	    transform: rotate(-140deg);
	    &:before{
		    left: 25%;
		    top: 37%;
		    content: ' ';
		    transform: rotate(0deg);
	    }
	    &:after{
	    	left: 45%;
		    top: 65%;
		    content: ' ';
		    transform: rotate(0deg);
	    }
	}

	.mouth{
	  	background-color: #000;
	    width: 25%;
    	height: 25%;
	    border-radius: 50%;
	    position: absolute;
        left: 38%;
   		top: 90%;
	}

	.body{
		background-color: #c0c0c0;
	    width: 140%;
    	height: 170%;
	    border-radius: 50%;
	    position: absolute;
	    left: -19%;
	    top: 50%;
	    z-index: -1;

	    &::after{
	    	background-color: #c0c0c0;
		    width: 100%;
    		height: 50%;
		    position: absolute;
		    content: ' ';
		    top: 50%;
	    }
	}
	.body__womb{
		background-color: #d5d5d5;
	    width: 115%;
    	height: 120%;
	    border-radius: 47%;
	    position: absolute;
	    left: -7%;
	    top: 90%;
	    z-index: 1;

	    &::after{
	    	background-color: #d5d5d5;
	    	width: 100%;
		    height: 50%;
		    z-index: 10;
		    position: absolute;
		    content: ' ';
		    top: 50%;
	    }
	}

	.ice{
	    position: relative;
    	top: 20%;
	}

	.ice__mask{
		fill: #fff;
	    z-index: 10000;
	    position: relative;
	    width: 100%;
    	left: 0;
    	top: 81%;
	}

	.ice__circle{
		background-color: #dceeee;
	    width: 85%;
	    height: 70%;
	    position: absolute;
	    border-radius: 50%;
	    border: 25px solid #e4f2f2;
	    left: 0%;
	    top: -19%;
	    z-index: -100;
	}

.wrapper2,
.wrapper3,
.wrapper5,
.wrapper6 {
	width: 200px;
  	height: 200px;
  	overflow: hidden;
    position: absolute;

	.ice__circle{
	    border: 15px solid #e4f2f2;
	}

	.nose__hears--left {
    	top: -5%;
	}

	.nose__hears--left, 
	.nose__hears--left:before, 
	.nose__hears--left:after, 
	.nose__hears--right, 
	.nose__hears--right:before, 
	.nose__hears--right:after{
	    width: 15px;
		height: 15px;
	}

	.eye__left .eye__inner-left:before,
	.eye__right .eye__inner-right:before{
	    border: solid 2px white;
	    width: 150%;
	    height: 150%;
	}

	.eye__left .eye__inner-left,
	.eye__right .eye__inner-right{
		width: 70%;
	    height: 70%;
	    left: 0%;
	    top: -1px;
	}
	.snout:before {
	    top: -40%;
	    left: -12.5%;
    }
}

.text{
  position: fixed;
  bottom: 0;
  font-family: helvetica, non-serif;
  font-size: 11px;
}
.link{
  text-decoration: none;
  color: seagreen;
  
  &:hover{
    font-size: 13px;
    font-weight: bold;
  }
}

@keyframes jumpin {
    0%   {
    top: 50px;
    }
    30%  {
    	top: 0;
    }
    100%  {
    	top: 100%;
    }
}

@keyframes jumpout {
	0%   {top: 100%}
    30%  {top: 0}
    100%  {top: 50px}
}

@keyframes twinkle {
    0%   {
    	height: 20%;
    	top: 25%;
    }
    1%  {
    	height: 0%;
    	top: 30%;
    } 
    2%  {
    	height: 20%;
    	top: 25%;
    }
    98%  {
    	height: 20%;
    	top: 25%;
    }
    99%  {
    	height: 0%;
    	top: 30%;
    } 
    100%  {
    	height: 20%;
    	top: 25%;
    }

}
@keyframes twinkle-inner {
    0%   {
    	opacity: 1;
    	
    }
    2%  {
    	opacity: 0;
    	
    }
    3%  {
    	opacity: 1;
    	
    }
    98%  {
    	opacity: 1;
    	
    }
    99%  {
    	opacity: 0;
    	
    }
    100%  {
    	opacity: 0;
    	
    }
}

@keyframes jumpout {
	0%   {top: 100%}
    30%  {top: 0}
    100%  {top: 50px}
}

@media screen and (max-width: 769px) {
		div.wrapper{
			left: 0;
		}
		div.wrapper2{
			left: 15px;
		}
		div.wrapper3{
			left: 45%;
		}
		div.wrapper5{
			left: 40%;
		}
		div.wrapper6{
			left: 70%;
		}
	}

@media screen and (max-width: 500px) {
  .wrapper2,
  .wrapper5{
    display: none;
  }
  div.wrapper{
    left: 5%;
    top: 20%;
  }
  div.wrapper4{
    left: 25%;
    top: 40%;
  }
  div.wrapper6{
    left:45%;
    top: 20%;
  }
  div.wrapper3{
    left:25%;
    top: 0%;
  }
}


              
            
!

JS

              
                // image by Nanna Paskesen 
// https://dribbble.com/shots/4513536-Arctic-seals
              
            
!
999px

Console