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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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 class="facebook">
<div class="facebook_back"></div>
 <div class="eye">
    <div class="iris anim"></div>
 </div>
</div>
<div class="ia">
<div class="ia_back"></div>
<div class="ia_phones"></div>
</div>
            
          
!
            
              /*
==============================================
MAIN
==============================================
*/
html, body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  background: linear-gradient(0deg, #dd0000, #2f6c7f);
}
/*
==============================================
ELEMENTS
==============================================
*/
.facebook {  
  height: 55vw;
  width:55vw;  
  position: absolute;
  margin-left: 25vw;
  bottom:0;  
}
.facebook_back {
  z-index: 1;    
  background-image: url('http://themes.opderdan.de/platformer/facebook.png');
  background-size: contain;    
  background-repeat: no-repeat;
  background-position: bottom;
  position: absolute;
  height: 100%;
  width:100%;  
}
.eye {
  z-index: 5; 
  width: 10%;
  height: 10%;
  bottom: 0;
  background-color: #ffffff;
  box-shadow: inset 0 0 40px 0 rgba(0, 0, 0, 0.3);
  border-radius: 100%;
  position: absolute;
  margin-left: 18.1vw;
  margin-bottom: 14.8vw;
  -webkit-perspective: 500px;
          perspective: 500px;
  overflow: hidden;
}
.eye .iris {
  width: 100%;
  height: 100%;
  top: 0%;
  left: 0%;
  position: absolute;
  -webkit-transform: rotateX(-50deg) rotateY(15deg) translateZ(68px) scale(0.8);
          transform: rotateX(-50deg) rotateY(15deg) translateZ(68px) scale(0.8);
  background: -webkit-radial-gradient(center ellipse, #000000 13%, #cedbe9 15%, #cedbe9 15%, #b1d1e0 25%, #85b5e5 44%, #6199c7 51%, #fffcf9 53%, rgba(255, 252, 249, 0.4) 56%, rgba(0, 0, 0, 0) 71%);
  background: radial-gradient(ellipse at center, #000000 13%, #cedbe9 15%, #cedbe9 15%, #b1d1e0 25%, #85b5e5 44%, #6199c7 51%, #fffcf9 53%, rgba(255, 252, 249, 0.4) 56%, rgba(0, 0, 0, 0) 71%);
  border-radius: 100%;
}
.eye .iris.anim {
  -webkit-animation-duration: 10s;
          animation-duration: 10s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-name: iris;
          animation-name: iris;
}

@-webkit-keyframes iris {
  0%, 100% {
    -webkit-transform: rotateX(-10deg) rotateY(15deg) translateZ(68px) scale(0.8);
            transform: rotateX(-10deg) rotateY(15deg) translateZ(68px) scale(0.8);
  }
  10% {
    -webkit-transform: rotateX(-50deg) rotateY(15deg) translateZ(68px) scale(0.8);
            transform: rotateX(-50deg) rotateY(15deg) translateZ(68px) scale(0.8);
  }
  30% {
    -webkit-transform: rotateX(-30deg) rotateY(-5deg) translateZ(68px) scale(0.8);
            transform: rotateX(-30deg) rotateY(-5deg) translateZ(68px) scale(0.8);
  }
  45% {
    -webkit-transform: rotateX(-20deg) rotateY(-15deg) translateZ(68px) scale(0.8);
            transform: rotateX(-20deg) rotateY(-15deg) translateZ(68px) scale(0.6);
  }
  55%, 60% {
    -webkit-transform: rotateX(0deg) rotateY(0deg) translateZ(68px) scale(0.8);
            transform: rotateX(0deg) rotateY(0deg) translateZ(68px) scale(0.8);
  }
  90% {
    -webkit-transform: rotateX(30deg) rotateY(5deg) translateZ(68px) scale(0.8);
            transform: rotateX(30deg) rotateY(5deg) translateZ(68px) scale(0.8);
  }
}
@keyframes iris {
  0%, 100% {
    -webkit-transform: rotateX(-10deg) rotateY(15deg) translateZ(68px) scale(0.8);
            transform: rotateX(-10deg) rotateY(15deg) translateZ(68px) scale(0.8);
  }
  10% {
    -webkit-transform: rotateX(-50deg) rotateY(15deg) translateZ(68px) scale(0.8);
            transform: rotateX(-50deg) rotateY(15deg) translateZ(68px) scale(0.8);
  }
  30% {
    -webkit-transform: rotateX(-30deg) rotateY(-5deg) translateZ(68px) scale(0.8);
            transform: rotateX(-30deg) rotateY(-5deg) translateZ(68px) scale(0.8);
  }
  45% {
    -webkit-transform: rotateX(-20deg) rotateY(-15deg) translateZ(68px) scale(0.8);
            transform: rotateX(-20deg) rotateY(-15deg) translateZ(68px) scale(0.8);
  }
  55%, 60% {
    -webkit-transform: rotateX(0deg) rotateY(0deg) translateZ(68px) scale(0.8);
            transform: rotateX(0deg) rotateY(0deg) translateZ(68px) scale(0.8);
  }
  90% {
    -webkit-transform: rotateX(30deg) rotateY(5deg) translateZ(68px) scale(0.8);
            transform: rotateX(30deg) rotateY(5deg) translateZ(68px) scale(0.8);
  }
}
.ia {  
  height: 30vw;
  width:30vw;  
  position: absolute;
  margin-left: 50vw;
  bottom:0;  
}
.ia_back {
  z-index: 2;    
  background-image: url('http://themes.opderdan.de/platformer/instantarticles.png');
  background-size: contain;    
  background-repeat: no-repeat;
  background-position: bottom;
  position: absolute;
  height: 100%;
  width:100%;  
}
.ia_phones {
  z-index: 3;    
  background-image: url('http://themes.opderdan.de/platformer/instantarticles_phones.png');
  background-size: contain;    
  background-repeat: no-repeat;
  background-position: left top;      
  position: absolute;
  height: 75%;
  width:75%;  
  left: 0;
  top:8%;
  margin-left:21vw;
    
  -webkit-animation:phonemove 3.6s ease infinite;
  -moz-animation:phonemove 3.6s ease infinite;
  animation:phonemove 3.6s ease infinite;  
  
 transform-origin: 0% 0%;
  -ms-transform-origin: 0% 0%;
  -webkit-transform-origin: 0% 0%; 
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
}

@keyframes phonemove {
	0% {
		transform: rotate(-10deg);
	}
	50%{
		transform: rotate(10deg);
	}		
	100%{
		transform: rotate(-10deg);
	}	
}
@-webkit-keyframes phonemove {
	0% {
		-webkit-transform: rotate(-10deg);
	}
	50%{
		-webkit-transform: rotate(10deg);
	}		
	100%{
		-webkit-transform: rotate(-10deg);
	}		
}


            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.
Loading ..................

Console