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.

            
              <label>
	A+<br>
	A&nbsp;&nbsp;<br>
	B&nbsp;&nbsp;<br>
	C&nbsp;&nbsp;<br>
	D&nbsp;&nbsp;<br>
	E&nbsp;&nbsp;<br>
	F&nbsp;&nbsp;<br>
	G&nbsp;&nbsp;
</label>
            
          
!
            
              body {
	background: #282828;
}

label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	overflow: hidden;
	border: solid .25em #dbe0e5;
	width: 15em;
	height: 16.25em;
	padding-top: .25em;
	padding-right: 1.5em;
	margin: 0;
	background-color: white;
	box-shadow: 0 0 3em 0 black;
	z-index: 1;
	font-family: sans-serif;
	font-weight: bold;
	line-height: 2em;
	color: white;
	text-align: right;
	background-image:
		linear-gradient(90deg, white 1em, transparent 0),
		linear-gradient(45deg, white .55em, transparent .55em),
		linear-gradient(135deg, white .55em, transparent .55em),
		linear-gradient(0deg, black 1.5em, transparent 0);
	animation: label 10s steps(1) infinite;
	
	&::before {
		content: "";
		position: absolute;
		width: 12em;
		height: 16.5em;
		top: 0;
		left: 0;
		background-image:
			linear-gradient(90deg, white .55em, transparent 0),

			linear-gradient(45deg, #118d2b .55em, transparent 0),
			linear-gradient(135deg, #118d2b .55em, transparent 0),
			linear-gradient(45deg, #118d2b .55em, transparent 0),
			linear-gradient(135deg, #118d2b .55em, transparent 0),
			linear-gradient(45deg, #5cac25 .55em, transparent 0),
			linear-gradient(135deg, #5cac25 .55em, transparent 0),
			linear-gradient(45deg, #d5d100 .55em, transparent 0),
			linear-gradient(135deg, #d5d100 .55em, transparent 0),
			linear-gradient(45deg, #feed01 .55em, transparent 0),
			linear-gradient(135deg, #feed01 .55em, transparent 0),
			linear-gradient(45deg, #fbba00 .55em, transparent 0),
			linear-gradient(135deg, #fbba00 .55em, transparent 0),
			linear-gradient(45deg, #eb6909 .55em, transparent 0),
			linear-gradient(135deg, #eb6909 .55em, transparent 0),
			linear-gradient(45deg, #e3001b .55em, transparent 0),
			linear-gradient(135deg, #e3001b .55em, transparent 0),

			linear-gradient(90deg, white 1.5em, transparent 0),
			linear-gradient(0deg, #e3001b 1.5em, transparent 0),
			linear-gradient(90deg, white 2em, transparent 0),
			linear-gradient(0deg, #eb6909 1.5em, transparent 0),
			linear-gradient(90deg, white 2em, transparent 0),
			linear-gradient(0deg, #fbba00 1.5em, transparent 0),
			linear-gradient(90deg, white 2em, transparent 0),
			linear-gradient(0deg, #feed01 1.5em, transparent 0),
			linear-gradient(90deg, white 2em, transparent 0),
			linear-gradient(0deg, #d5d100 1.5em, transparent 0),
			linear-gradient(90deg, white 2em, transparent 0),
			linear-gradient(0deg, #5cac25 1.5em, transparent 0),
			linear-gradient(90deg, white 2em, transparent 0),
			linear-gradient(0deg, #118d2b 1.5em, transparent 0),
			linear-gradient(90deg, white 2em, transparent 0),
			linear-gradient(0deg, #118d2b 1.5em, transparent 0);

		background-position:
			0 0,
			4em 1.25em,
			4em 1.25em,

			5em 3.25em,
			5em 3.25em,

			6em 5.25em,
			6em 5.25em,

			7em 7.25em,
			7em 7.25em,

			8em 9.25em,
			8em 9.25em,

			9em 11.25em,
			9em 11.25em,

			10em 13.25em,
			10em 13.25em,

			11em 15.25em,
			11em 15.25em,

			11em 0em,
			0em 16em,

			10em 0em,
			0em 14em,

			9em 0em,
			0em 12em,

			8em 0em,
			0em 10em,

			7em 0em,
			0em 8em,

			6em 0em,
			0em 6em,

			5em 0em,
			0em 4em,

			4em 0em,
			0em 2em;
	}
	
	&::after {
		content: "A+ A B C D E F G";
		width: 0;
		top: .25em;
		left: 2em;
		position: absolute;
	}	
}

@keyframes label {
	0% {
		background-position:
			16em 0,
			12em 2em,
			12em .5em,
			0 2em;
	}
	12.5% {
		background-position:
			16em 0,
			12em 4em,
			12em 2.5em,
			0 4em;
	}
	25% {
		background-position:
			16em 0,
			12em 6em,
			12em 4.5em,
			0 6em;
	}
	37.5% {
		background-position:
			16em 0,
			12em 8em,
			12em 6.5em,
			0 8em;
	}
	50% {
		background-position:
			16em 0,
			12em 10em,
			12em 8.5em,
			0 10em;
	}
	62.5% {
		background-position:
			16em 0,
			12em 12em,
			12em 10.5em,
			0 12em;
	}
	75% {
		background-position:
			16em 0,
			12em 14em,
			12em 12.5em,
			0 14em;
	}
	87.5% {
		background-position:
			16em 0,
			12em 16em,
			12em 14.5em,
			0 16em;
	}
}
            
          
!
999px
Loading ..................

Console