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

              
                <div class="container">
<div class="nisshou">
<div class="kyokkou k1"></div>
<div class="kyokkou k2"></div>
<div class="kyokkou k3"></div>
<div class="kyokkou k4"></div>
<div class="kyokkou k5"></div>
<div class="kyokkou k6"></div>
<div class="kyokkou k7"></div>
<div class="kyokkou k8"></div>
<div class="kyokkou k9"></div>
<div class="kyokkou k10"></div>
<div class="kyokkou k11"></div>
<div class="kyokkou k12"></div>
<div class="kyokkou k13"></div>
<div class="kyokkou k14"></div>
<div class="kyokkou k15"></div>
<div class="kyokkou k16"></div>
</div>
</div>
<p><a href="https://1-notes.com/css-kyokujituki/" target="_blank" rel="noopener">CSSで作る旭日旗ーKyokujitukiー | ONE NOTES</a></p>
              
            
!

CSS

              
                body{
	background: #90CAF9;
}

.container{
	position: relative;
	width: 400px;
	height: 260px;
	margin: 10px;
	background: #FFF;
	overflow: hidden;
  	filter: drop-shadow(5px 4px 2px rgba(0,0,0,0.5));
}
.nisshou{
	position: absolute;
	top: 20%;/*日章の位置*/
	left: 15%;/*日章の位置*/
	width: 120px;/*日章の大きさ*/
	height: 120px;/*日章の大きさ*/
	border-radius: 50%;
	background: #1E88E5;
	display: flex;
	align-items: center;
	justify-content: center;
}
.kyokkou{
	position: absolute;
	width: 10px;/*旭光の太さ*/
	height: 0;
	border-top: 400px transparent solid;
	border-bottom: 400px #1E88E5 solid;
	border-right: 20px transparent solid;
	border-left: 20px transparent solid;
}
.k1{
	transform: rotate(0deg);
}
.k2{
	transform: rotate(22.5deg);
}
.k3{
	transform: rotate(45deg);
}
.k4{
	transform: rotate(67.5deg);
}
.k5{
	transform: rotate(90deg);
}
.k6{
	transform: rotate(110.5deg);
}
.k7{
	transform: rotate(135deg);
}
.k8{
	transform: rotate(157.5deg);
}
.k9{
	transform: rotate(180deg);
}
.k10{
	transform: rotate(202.5deg);
}
.k11{
	transform: rotate(225deg);
}
.k12{
	transform: rotate(247.5deg);
}
.k13{
	transform: rotate(270deg);
}
.k14{
	transform: rotate(292.5deg);
}
.k15{
	transform: rotate(315deg);
}
.k16{
	transform: rotate(337.5deg);
}
              
            
!

JS

              
                
              
            
!
999px

Console