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.

Quick-add: + add another resource

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.

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.

            
              <div class="wrap">
	<div class="box">
		<h2>1.部分的に位置を変える</h2>
		<svg version="1.1"
			 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 500" id="move"> 
			<path class="yellow" d="M500,250C500,110.9,386.9,0,250,0C113.1-2.1,0,110.9,0,250s113,250,250,250C389.1,500,500,387,500,250z"/>
			<path id="arrow" class="blue" d="M247.9,356.6v-41.3c0-8.7-8.7-17.4-17.4-17.4H137c-10.9,0-17.4-8.7-17.4-17.4v-60.9c0-10.9,8.7-17.4,17.4-17.4
				h93.5c8.7,0,17.4-8.7,17.4-17.4v-39.1c-0.1-10.9,13-17.4,21.7-10.9L391.3,237c8.7,6.5,8.7,19.6,0,26.1L269.6,365.3
				C260.9,371.8,247.9,365.3,247.9,356.6z"/>
		</svg>
	</div>
	<div class="box">
		<h2>2.色を変える</h2>
		<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 346.11" id="graph">
			<rect class="grow" x="410.23" y="115.42" width="89.77" height="230.69"/>
			<rect class="grow" y="102.6" width="89.77" height="243.51"/>
			<rect class="grow" x="102.44" y="19.24" width="89.77" height="326.87"/>
			<rect class="grow" x="205.04" y="76.95" width="89.77" height="269.16"/>
			<rect class="grow" x="307.63" width="89.77" height="346.11"/>
		</svg>
	</div>
	
</div>
	
            
          
!
            
              .wrap{
	display: block;
	width: 650px;
}
.box{ 
	width: 320px;
	display: inline-block;
	vertical-align: top;
}
svg{ 
	width: 150px;
	margin-top: auto;
}
.gray { fill: #414042; }
.yellow { fill: #F9DB57; }
.blue { fill: #44A5CB; }

/* --- move --- */
#move{
  position: relative;
	overflow: visible;
}
#arrow{
	animation: move 2s ease-out;
	transform: translateX(280px);
}
@keyframes move {
    0% { transform: translateX(0); }
    100% { transform: translateX(280px); } 
}


#graph{
  position: relative;
  width: 200px;
}
#graph rect{
	fill: #CE579B;
  animation: grow 2s ease-in-out;
  transform-origin: bottom;
}
@keyframes grow {
/*     0% { transform: translateY(100%); }
    100% { transform: translateY(0); } */
		0% { 
			transform: scaleY(0);
			fill: #6CBAD8;
		}
		25%{
			fill: #9D73BB;
		}
		50%{
			fill: #CFE283;
		}
		75%{
			fill: #FFEE55
		}
    100% { 
			transform: scaleY(1);
			fill: #CE579B;
		}
}





            
          
!
999px
Loading ..................

Console