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.

            
              body, html
{
	width: 100%;
	height: 100%;
}

body
{
	display: flex;
  	align-items: center;
  	justify-content: center;
	background-color: lightslategray;
}

.yinyang
{
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: linear-gradient(to bottom,black 0%,black 50%,white 50%,white 100%);
	display: block;
	box-shadow: 6px 6px 27px 4px rgba(0,0,0,0.16);
	display: flex;
  	align-items: center;
  	justify-content: center;
	//border: 5px solid white;
	animation: 2s rotate linear infinite;
	
}

.yinyang:after, .yinyang:before
{
	content: '';
	display: block;	
	border-radius: 50%;
}

.yinyang:after
{
	width: 75%;
	height: 75%;
	background: radial-gradient(ellipse at center, black 0%, black 25%, white 25%, white 100%);
	animation: inner-size 3s ease-in-out infinite;
	animation-delay: -1.5s;
}

.yinyang:before
{
	width: 25%;
	height: 25%;
	background: radial-gradient(ellipse at center, white 0%, white 25%, black 25%, black 100%);
	animation: inner-size 3s ease-in-out infinite;
}

@keyframes inner-size {
	0%, 100% {
		width: 75%;
		height: 75%;
	}
	
	50% {
		width: 25%;
		height: 25%;
	}	
}

@keyframes rotate {
	to {transform: rotate(-360deg)}
}
            
          
!
999px
Loading ..................

Console