cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

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.

            
              <h2>demo1 <small>@keyframe内でanimation-timing-functionなし。全体はlinear</small></h2>
<div class="box demo1"></div>
<hr />
<h2>demo2 <small>@keyframe内でanimation-timing-functionあり。全体はlinear</small></h2>
<div class="box demo2"></div>
<hr />
<h2>demo3 <small>@keyframe内でanimation-timing-functionあり。全体はease-in</small></h2>
<div class="box demo3"></div>
<hr />
<h2>demo4 <small>@keyframe内でanimation-timing-function半分あり。全体はease-in</small></h2>
<div class="box demo4"></div>
            
          
!
            
              small {
	font-size: 70%;
}
.box {
	width: 50px;
	height: 50px;
	margin-bottom: 20px;
	background-color: #ccc;
}
.demo1 {
	animation-name: demo1Anim;
	animation-duration: 3s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
.demo2 {
	animation-name: demo2Anim;
	animation-duration: 3s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}
.demo3 {
	animation-name: demo2Anim;
	animation-duration: 3s;
	animation-timing-function: ease-in;
	animation-iteration-count: infinite;
}
.demo4 {
	animation-name: demo4Anim;
	animation-duration: 3s;
	animation-timing-function: ease-in;
	animation-iteration-count: infinite;
}

@keyframes demo1Anim {
	0% {
		transform: translateX(0);
	}
	50% {
		transform: translateX(500px);
	}
	100% {
		transform: translateX(0);
	}
}

@keyframes demo2Anim {
	0% {
		transform: translateX(0);
		animation-timing-function: steps(4, start);
	}
	50% {
		transform: translateX(500px);
		animation-timing-function: steps(8, start);
	}
	100% {
		transform: translateX(0);
	}
}

@keyframes demo4Anim {
	0% {
		transform: translateX(0);
		animation-timing-function: steps(4, start);
	}
	50% {
		transform: translateX(500px);
	}
	100% {
		transform: translateX(0);
	}
}
            
          
!
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