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

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.

            
              .container {
	position: relative;
	width: 233px;
	height: 233px;
	background: white;
	margin: 20vh auto;
}

.box {
	position: absolute;
	
	&:nth-child(1) {
		top: 6px;
		width: 0;
		height: 0;
		border-top: 110px solid transparent;
		border-left: 0 solid #575A71;
		border-bottom: 110px solid transparent;
		animation: show_piece_1 1s linear forwards;
		
		@keyframes show_piece_1 {
			100% {
				border-left: 110px solid #575A71;
			}
		}
	}
	
	&:nth-child(2) {
		left: 29px;
    width: 111px;
    height: 0;
		transform: skew(45deg);
		background: #86D928;
		animation: show_piece_2 1s linear forwards;
		
		@keyframes show_piece_2 {
			100% {
				height: 53px;
			}
		}
	}
	
	&:nth-child(3) {
		right: 0;
		width: 0;
		height: 0;
		border-top: 0 solid #6DAFC6; 
		border-left: 0 solid transparent;
		animation: show_piece_3 1s linear forwards;
		
		@keyframes show_piece_3 {
			100% {
				border-top: 110px solid #6DAFC6;
				border-left: 110px solid transparent;
			}
		}
	}
	
	&:nth-child(4) {
		top: 57px;
    left: 60px;
    width: 0;
    height: 0;
    border-left: 55px solid transparent;
    border-right: 55px solid transparent;
    border-top: 0 solid #E3A303;
		animation: show_piece_4 1s linear forwards;
		
		@keyframes show_piece_4 {
			100% {
				border-top: 55px solid #E3A303;
			}
		}
	}
	
	&:nth-child(5) {
		top: 78px;
    right: 18px;
    width: 20px;
		height: 20px;
		background: #86D928;
		transform: rotate(45deg);
		animation: show_piece_5 1s linear forwards;
		
		@keyframes show_piece_5 {
			100% {
				width: 78px;
				height: 78px;
			}
		}
	}
	
	&:nth-child(6) {
		bottom: 0;
		right: 0;
		width: 0;
		height: 0;
		border-top: 55px solid transparent;
		border-right: 0 solid #E3A303;
		border-bottom: 55px solid transparent;
		animation: show_piece_6 1s linear forwards;
		
		@keyframes show_piece_6 {
			100% {
				border-right: 53px solid #E3A303;
			}
		}
	}
	
	&:nth-child(7) {
		bottom: 0;
		left: 5px;
		width: 0;
		height: 0;
		border-left: 111px solid transparent;
		border-right: 111px solid transparent;
		border-bottom: 0 solid #6DAFC6;
		animation: show_piece_7 1s linear forwards;
		
		@keyframes show_piece_7 {
			100% {
				border-bottom: 111px solid #6DAFC6;
			}
		}
	}
}
            
          
!
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