cssAudio - Activefile-genericCSS - 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.

            
              <html>
  
  <head>
  </head>

<body>
 <h1 class="title">Apple App Store Icon | Animated </h1>

 <!-- Begin Image -->
 <!-- Invisible Box-->
 <div class="box">
   	
	 <div class="circle"></div>

   <div class="horizantal-line-left"></div>
	 <div class="horizantal-line-middle"></div>
	 <div class="horizantal-line-right"></div>
	 
	 	<div class="pencil-top"></div>
		<div class="pencil-middle"></div>
		<div class="pencil-bottom"></div>
	 
	<div class="brush-top"></div>
	<div class="brush-middle"></div>
	<div class="brush-bottom"></div>
	<div class="brush-bottom-circle"></div>


 </div> <!-- End Invisible Box -->
  

  
  
  
  <div> <!-- for footer -->
      <h5 id="footer" class="title"><a href="http://www.eleftheriabatsou.com" target="_blank">Eleftheria</a> | <a href="http://codepen.io/EleftheriaBatsou" target="_blank">Projects</a> | <a href="https://www.youtube.com/channel/UCC-WwYv3DEW7Nkm_IP6VeQQ" target="_blank"> Coding videos </a></h5>
    </div> <!-- end footer -->
  
</body>
</html>
            
          
!
            
              $bg-color: #fff;
$black: #000;
$white: #fff;

$box-color: linear-gradient(to top, #1d64f0 0%, #19d6fd 100%);




.title{text-align: center;}

#footer a:link{color:black}
#footer a:visited{color:black}
#footer a:hover{color:  #1d64f0}

body{background: $bg-color;}

.box{  
  position: relative;
  margin: auto;
  display: block;
  /*optional background or border*/
  //border: solid 4px red;
  
  margin-top: 4%;
  width: 530px;
  height: 500px;
	border-radius: 20%;
  background: $box-color;
}

.circle{
	position: absolute;
  top: 6%;
  left: 6%;
  width: 80%;
  height: 80%;
  background: none;
	border-radius: 50%;
	border: solid 20px $white;
	
	animation: circleRotate 3s 2;
}

 //parallelogram
.horizantal-line-left{
  position: absolute;
  top: 46%;
  left: 20%;
  width: 10%;
  height: 8%;
  background: $white;
	
	-webkit-clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
clip-path: polygon(0 0, 100% 0%, 75% 100%, 0% 100%);
	
	animation: line 3s 1;
}
.horizantal-line-middle{
  position: absolute;
  top: 46%;
  left: 38.1%;
  width: 22%;
  height: 8%;
  background: $white;
	
-webkit-clip-path: polygon(13% 0, 93% 0, 100% 100%, 0% 100%);
clip-path: polygon(13% 0, 87% 0, 100% 100%, 0% 100%);
}
.horizantal-line-right{
  position: absolute;
  top: 46%;
  right: 21.7%;
  width: 10%;
  height: 8%;
  background: $white;
	
	-webkit-clip-path: polygon(0 0, 100% 0%, 100% 100%, 23% 100%);
clip-path: polygon(0 0, 100% 0%, 100% 100%, 24% 100%);
	
	animation: line 3s 1;
}

//pencil
.pencil-middle{
	position: absolute;
  top: 40%;
  left: 18.7%;
  width: 35%;
  height: 8%;
  background: $white;
	
	-ms-transform: rotate(-70deg);
  -webkit-transform: rotate(-70deg); 
  transform: rotate(-70deg);
	
	//animation: pencilTop 3s 1;
}
.pencil-top{
	position: absolute;
  top: 17%;
  left: 40%;
  width: 8%;
  height: 8%;
  background: $white;
	border-top-right-radius: 45%;
	border-bottom-right-radius: 45%;
	
	-ms-transform: rotate(-70deg);
  -webkit-transform: rotate(-70deg); 
  transform: rotate(-70deg);
	
	animation: pencilTop 3s 1;
}
.pencil-bottom{
	position: absolute;
  top: 62.5%;
  left: 23.7%;
  width: 8%;
  height: 12%;
  background: $white;
	
	-ms-transform: rotate(21deg);
  -webkit-transform: rotate(21deg); 
  transform: rotate(21deg);
	
	-webkit-clip-path: polygon(50% 100%, 0 0, 100% 0);
clip-path: polygon(50% 100%, 0 0, 100% 0);
	
	animation: pencil 3s 1;
}

//brush
.brush-top{
	position: absolute;
  top: 30%;
  right: 19%;
  width: 45%;
  height: 8%;
  background: $white;
	border-top-left-radius: 15%;
	border-bottom-left-radius: 15%;
	
	-ms-transform: rotate(70deg);
  -webkit-transform: rotate(70deg); 
  transform: rotate(70deg);
	
	animation: brushBottom 3s 1;
}
.brush-middle{
	position: absolute;
  top: 58%;
  right: 28%;
  width: 8%;
  height: 8%;
  background: $white;
	
	-ms-transform: rotate(70deg);
  -webkit-transform: rotate(70deg); 
  transform: rotate(70deg);
	
	animation: brush 3s 1;
}
.brush-bottom{
	position: absolute;
  top: 68.5%;
  right: 22.8%;
  width: 11%;
  height: 8%;
  background: $white;
	
	border-top-right-radius: 50%;
	border-bottom-right-radius: 50%;

	-ms-transform: rotate(70deg);
  -webkit-transform: rotate(70deg); 
  transform: rotate(70deg);
	
	animation: brush 3s 1;
}

//the final rotation depends on the degrees
//for the brush: 360+70=430deg 
@keyframes brush{
  0%{ //for 0sec
    transform: rotate(0deg); 
		color: white;
  }
	50%{ 
		background: none;	
  }
  100%{ //for all sec
    transform: rotate(430deg);
  }
  
}
@keyframes pencil{
  0%{ //for 0sec
    transform: rotate(0deg); 
		color: white;
  }
	50%{
		background: none;	
  }
  100%{ //for all sec
    transform: rotate(381deg);
  }  
}

@keyframes pencilTop{
  0%{ //for 0sec
    transform: rotate(0deg); 
		color: white;
  }
	50%{ 
		background: none;	
  }
  100%{ //for all sec
    transform: rotate(290deg);
  }  
}

@keyframes line{
  0%{ //for 0sec
    transform: rotate(0deg); 
		color: white;
  }
	50%{ 
		background: none;	
  }
  100%{ //for all sec
    transform: rotate(360deg);
  }  
}

@keyframes circleRotate{
  0%{ //for 0sec
    transform: rotate(0deg); 
  }
	50%{ 
		border-color: #19d6fd;
		transform: scale(1.1);
		border-radius: 20%;
  }
  100%{ //for all sec
    transform: rotate(360deg);
  }  
}







            
          
!
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