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="con">
     ▼エンジン
     <div class="miniCon engine">
    </div>
  </div>
  <div class="con">
     ▼雲
     <div class="miniCon cloud">
    </div>
  </div>
  <div class="con">
     ▼ふわふわ
     <div class="miniCon fwari">
    </div>
  </div>
  <div class="con">
     ▼回転
     <div class="miniCon spin">
    </div>
  </div>
  <div class="con">
     ▼ジャンプ
     <div class="miniCon jump">
    </div>
  </div>
  <div class="con">
     ▼ふりこ
     <div class="miniCon pendulum">
    </div>
  </div>
  <div class="con">
     ▼ボール
     <div class="miniCon ball">
    </div>
  </div>
  <div class="con">
     ▼登場※1回のみ再生
     <div class="miniCon appearance">
    </div>
  </div>
  <div class="con">
     ▼登場(コトン)※1回のみ再生
     <div class="miniCon koton">
    </div>
  </div>
</div>
              
            
!

CSS

              
                .wrapper{
  display: block;
  width:100%;
  text-align:center;
  margin:0 auto;
}
.con{
  display: inline-block;
}
.miniCon{
  margin: 20px;
  width:100px;
  height:100px;
  background-color:black;
}


/****--------- エンジン ---------****/
.engine{
	animation:engine 0.2s infinite;
	-webkit-animation:engine 0.2s infinite;
	-moz-animation:engine 0.2s infinite;
}
@keyframes engine{
	0%   { transform: scale(1.0, 1.0) translate(0%, 0%); }
	50%  { transform: scale(1.0, 0.98) translate(0%, 1.5%); }
	100% { transform: scale(1.0, 1.0) translate(0%, 0%); }
}
@-webkit-keyframes engine{
	0%   { -webkit-transform: scale(1.0, 1.0) translate(0%, 0%); }
	50%  { -webkit-transform: scale(1.0, 0.98) translate(0%, 1.5%); }
	100% { -webkit-transform: scale(1.0, 1.0) translate(0%, 0%); }
}
@-moz-keyframes engine{
	0%   { -moz-transform: scale(1.0, 1.0) translate(0%, 0%); }
	50%  { -moz-transform: scale(1.0, 0.98) translate(0%, 1.5%); }
	100% { -moz-transform: scale(1.0, 1.0) translate(0%, 0%); }
}

 /****--------- 雲 ---------****/
.cloud{
	animation:cloud ease-in-out 4s infinite alternate;
	-webkit-animation:cloud ease-in-out 4s infinite alternate;
	-moz-animation:cloud ease-in-out 4s infinite alternate;
}
@keyframes cloud{
	0%   { transform:translate(0%, 0%);  opacity:1;}
	100% { transform:translate(-30px, 0%); opacity:0;}
}
@-webkit-keyframes cloud{
	0%   { -webkit-transform:translate(0%, 0%);  opacity:1;}
	100% { -webkit-transform:translate(-30px, 0%); opacity:0;}
}
@-moz-keyframes cloud{
	0%   { -moz-transform:translate(0%, 0%);  opacity:1;}
	100% { -moz-transform:translate(-30px, 0%); opacity:0;}
}


/****--------- ふわふわ ---------****/
.fwari{
	animation:fwari ease-in-out 2s infinite alternate;
	-webkit-animation:fwari ease-in-out 2s infinite alternate;
	-moz-animation:fwari ease-in-out 2s infinite alternate;
}
@keyframes fwari{
	0%   { transform:translate(0%, 0%); }
	100% { transform:translate(0%, -30px); }
}
@-webkit-keyframes fwari{
	0%   { -webkit-transform:translate(0%, 0%); }
	100% { -webkit-transform:translate(0%, -30px); }
}

@-moz-keyframes fwari{
	0%   { -moz-transform:translate(0%, 0%); }
	100% { -moz-transform:translate(0%, -30px); }
}


/****--------- 回転 ---------****/
.spin{
	animation: spin 5s linear infinite;
	-webkit-animation: spin 5s linear infinite;
	-moz-animation: spin 5s linear infinite;
}
@keyframes spin{
	0%   { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
@-webkit-keyframes spin{
	0%   { -webkit-transform: rotate(0deg); }
	100% { -webkit-transform: rotate(360deg); }
}
@-moz-keyframes spin{
	0%   { -moz-transform: rotate(0deg); }
	100% { -moz-transform: rotate(360deg); }
}


/****--------- ジャンプ ---------****/
.jump{
	animation:jump 5s infinite;
	-webkit-animation:jump 5s infinite;
	-moz-animation:jump 5s infinite;
}
@keyframes jump{
	0%{transform:translate(0,0px);}
	3%{transform:translate(0,-20px);}
	5%{transform:translate(0,0px);}
	6%{transform:translate(0,-5px);}
	7%{transform:translate(0,0px);}
	100%{transform:translate(0,0px);}
}
@-webkit-keyframes jump{
	0%{-webkit-transform:translate(0,0px);}
	3%{-webkit-transform:translate(0,-20px);}
	5%{-webkit-transform:translate(0,0px);}
	6%{-webkit-transform:translate(0,-5px);}
	7%{-webkit-transform:translate(0,0px);}
	100%{-webkit-transform:translate(0,0px);}
}
@-moz-keyframes jump{
	0%{-moz-transform:translate(0,0px);}
	3%{-moz-transform:translate(0,-20px);}
	5%{-moz-transform:translate(0,0px);}
	6%{-moz-transform:translate(0,-5px);}
	7%{-moz-transform:translate(0,0px);}
	100%{-moz-transform:translate(0,0px);}
}

/****--------- ふりこ ---------****/
.pendulum{
	transform-origin:top;
	-webkit-transform-origin:top;
	-moz-transform-origin:top;
	animation:pendulum ease-in-out 3s infinite alternate;
	-webkit-animation:pendulum ease-in-out 3s infinite alternate;
	-moz-animation:pendulum ease-in-out 3s infinite alternate;
 }
@keyframes pendulum{
	0%{transform: rotate(10deg);}
	100%{transform: rotate(-10deg);}
}
@-webkit-keyframes pendulum{
	0%{-webkit-transform: rotate(10deg);}
	100%{-webkit-transform: rotate(-10deg);}
}
@-moz-keyframes pendulum{
	0%{-moz-transform: rotate(10deg);}
	100%{-moz-transform: rotate(-10deg);}
}


/****--------- ボール ---------****/
.ball{
	animation: ball 0.6s alternate infinite;
	-webkit-animation: ball 0.6s alternate infinite;
	-moz-animation: ball 0.6s alternate infinite;
}
@keyframes ball{
	0%   { transform:translate(0%, 0%) rotateX(25deg); }
	100% { transform:translate(0%, -60px); }
}
@-webkit-keyframes ball{
	0%   { -webkit-transform:translate(0%, 0%) rotateX(25deg); }
	100% { -webkit-transform:translate(0%, -60px); }
}

@-moz-keyframes ball{
	0%   { -moz-transform:translate(0%, 0%) rotateX(25deg); }
	100% { -moz-transform:translate(0%, -60px); }
}


/****--------- 登場 ---------****/
.appearance{
  opacity:0;
	animation:appearance 2.5s 1s 1 forwards;
	-webkit-animation:appearance 2.5s 1s 1 forwards;
	-moz-animation:appearance 2.5s 1s 1 forwards;
}
@keyframes appearance{
	0%{opacity:0; transform:translate(0,200px);}
	10%{opacity:1; transform:translate(0,-50px);}
	15%{opacity:1; transform:translate(0,0px);}
	20%{opacity:1; transform:translate(0,-20px);}
	25%{opacity:1; transform:translate(0,0px);}
	100%{opacity:1; transform:translate(0,0px);}
}
@-webkit-keyframes appearance{
	0%{opacity:0; -webkit-transform:translate(0,200px);}
	10%{opacity:1; -webkit-transform:translate(0,-50px);}
	15%{opacity:1; -webkit-transform:translate(0,0px);}
	20%{opacity:1; -webkit-transform:translate(0,-20px);}
	25%{opacity:1; -webkit-transform:translate(0,0px);}
	100%{opacity:1; -webkit-transform:translate(0,0px);}
}
@-moz-keyframes appearance{
	0%{opacity:0; -moz-transform:translate(0,200px);}
	10%{opacity:1; -moz-transform:translate(0,-50px);}
	15%{opacity:1; -moz-transform:translate(0,0px);}
	20%{opacity:1; -moz-transform:translate(0,-20px);}
	25%{opacity:1; -moz-transform:translate(0,0px);}
	100%{opacity:1; -moz-transform:translate(0,0px);}
}


/****--------- 登場(コトン) ---------****/
.koton{
	opacity: 0;
	animation:koton 0.5s 1.5s 1 forwards;
	-webkit-animation:koton 0.5s 1.5s 1 forwards;
	-moz-animation:koton 0.5s 1.5s 1 forwards;
}
@keyframes koton{
	0%   { transform:translate(0%, -100%);  opacity: 0;}
	20% { transform:translate(0%, 0%);}
	30% { transform:translate(0%, -10%);}
	50% { transform:translate(0%, 0%);}
	60% { transform:translate(0%, -3%); opacity: 1;}
	80% { transform:translate(0%, 0%);}
	90% { transform:translate(0%, -1%);}
	100% { transform:translate(0%, 0%); opacity: 1;}
}
@-webkit-keyframes koton{
	0%   { -webkit-transform:translate(0%, -100%);  opacity: 0;}
	20% { -webkit-transform:translate(0%, 0%);}
	30% { -webkit-transform:translate(0%, -10%);}
	50% { -webkit-transform:translate(0%, 0%);}
	60% { -webkit-transform:translate(0%, -3%); opacity: 1;}
	80% { -webkit-transform:translate(0%, 0%);}
	90% { -webkit-transform:translate(0%, -1%);}
	100% { -webkit-transform:translate(0%, 0%); opacity: 1;}
}
@-moz-keyframes koton{
	0%   { -moz-transform:translate(0%, -100%);  opacity: 0;}
	20% { -moz-transform:translate(0%, 0%);}
	30% { -moz-transform:translate(0%, -10%);}
	50% { -moz-transform:translate(0%, 0%);}
	60% { -moz-transform:translate(0%, -3%); opacity: 1;}
	80% { -moz-transform:translate(0%, 0%);}
	90% { -moz-transform:translate(0%, -1%);}
	100% { -moz-transform:translate(0%, 0%); opacity: 1;}
}













              
            
!

JS

              
                
              
            
!
999px

Console