Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

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

              
                	<p class="case_text">animation-fill-mode</p>
	<ul>
		<li>元のスタイル:オレンジ色</li>
		<li>@keyframes 0%のスタイル:水色</li>
		<li>@keyframes 100%のスタイル:緑色</li>
	</ul>
	<p>none</p>
	<p class="case_comments">アニメーションが再生されると、元のスタイルが適用されます。</p>
	<div class="case04 none"></div>
	<p>forwards</p>
	<p class="case_comments">アニメーション再生後、@keyframesで設定した100%の部分が適用されます。</p>
	<div class="case04 forwards"></div>
	<p>backwards</p>
	<p class="case_comments">animation-delay(開始するまでの遅延時間)で指定してる時間の間 @keyframesで設定した0%の部分が適用されます。</p>
	<div class="case04 backwards"></div>
	<p>both</p>
	<p class="case_comments">forwards と backwards の両方によるスタイルの適用を行います。</p>
	<div class="case04 both"></div>
              
            
!

CSS

              
                @keyframes changeColor{
	0%{background:skyblue;}
	100%{background:green;}
}

.none{
	animation-fill-mode: none;
}
.forwards{
	animation-fill-mode: forwards;
}
.backwards{
	animation-fill-mode: backwards;
}
.both{
	animation-fill-mode: both;
}


p{
	margin:10px 0 2px;
}
div{
	width: 50px;
	height: 50px;
	transition-timing-function:ease-out;	
	transition-duration:1s;
	display:inline-block;
	position: relative;
}
ul{
  font-size: 14px;
}
p{
  font-weight: bold;
}
.case_text{
	font-size: 1.2rem;
	font-weight: bold;
	color: #333;
	margin: 0;
}
.case_comments{
	font-size: 14px;
  font-weight: normal;
	margin: 0;
}
.case04{
	background: orange;
	animation-name: changeColor;
	animation-iteration-count: 1;	
	animation-duration: 3s;
	animation-delay:2s;
}
              
            
!

JS

              
                
              
            
!
999px

Console