Pen Settings

HTML

CSS

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.

+ 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

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.

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="colors">
      <div class="color">
        <h2>Tasteful</h2>
        <small>not click bait</small>
        <em>#011</em>
      </div>
      <div class="color">
        <h2>Empathetic</h2>
        <small>not apologetic</small>
        <em>#010</em>
      </div>
      <div class="color">
        <h2>Partner</h2>
        <small>not vendor</small>
        <em>#009</em>
      </div>
      <div class="color">
        <h2>Focused</h2>
        <small>not limited</small>
        <em>#008</em>
      </div>
      <div class="color">
        <h2>Genuine</h2>
        <small>not artificial</small>
        <em>#007</em>
      </div>
      <div class="color">
        <h2>Big</h2>
        <small>not impersonal</small>
        <em>#006</em>
      </div>
      <div class="color">
        <h2>Enthusiastic</h2>
        <small>not hyperbolic</small>
        <em>#005</em>
      </div>
      <div class="color">
        <h2>Inspirational</h2>
        <small>not unachievable</small>
        <em>#004</em>
      </div>
      <div class="color">
        <h2>Empowering</h2>
        <small>not absent</small>
        <em>#003</em>
      </div>
      <div class="color">
        <h2>Confident</h2>
        <small>not boastful</small>
        <em>#002</em>
      </div>
      <div class="color">
        <h2>Trustworthy</h2>
        <small>not inexperienced</small>
        <em>#001</em>
      </div>
      <div class="color">
        <h2>Inspiring growth</h2>
      </div>
      <div class="color">
        <h2>Building confidence</h2>
      </div>
      <div class="color">
        <h1>
          <span>VOICE</span>
          <span><sub>and</sub> TONE</span>
        </h1>
      </div>

      <div class="pin"></div>
	</div>
              
            
!

CSS

              
                $colors: (
	#8f9dd0,
    #80acdc,
	#58c3f0,
	#6dcde0,
	#6dc9c3,
	#7ec7ad,
	#aed580,
	#fed17b,
	#f89e68,
	#e86e6e,
	#d47385,
	#ffffff,
	#ffffff,
	#121213
);

* {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	-webkit-font-smoothing: antialiased;
  overflow: hidden;
	font-family: 'NTR', sans-serif;
	font-weight: 400;
	height: 100%;
	background: #eff1f3;
	background-image: radial-gradient(50% 50%, #fff 0%, #eff1f3 100%);
	line-height: 1;
}

.colors {
	width: 700px;
	height: 500px;
	margin: auto;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.pin {
	width: 28px;
	height: 28px;
	background: #5c5d5f;
	background-image:
				radial-gradient(50% 50%,
				#5c5d5f 30%, #4b4b4d 37%, #4b4b4d 43%, #8c8e91 47%, #8c8e91 60%, #68696b 70%, #535456);
	border-radius: 50%;
	position: absolute;
	top: 353px;
	left: 360px;
	z-index: 100;
}

.color {
	width: 360px;
	height: 118px;
	border-radius: 6px;
	position: absolute;
	color: #fff;
	padding: 12px 30px;
	transform-origin: 21px calc(100% - 21px);

	text-align: right;

	h2 {
		font-size: 18px;
		text-transform: uppercase;
	}

	h1 {
		margin: 28px 0;
		font-size: 45px;
		text-align: center;
		line-height: 22px;
		text-shadow: -3px -2px 1px rgba(255, 255, 255, .2);

		span {
			display: block;

			sub {
				font-size: .6em;
				vertical-align: baseline;
			}

			&:nth-child(1) {
				position: relative;
				left: -50px;
			}

			&:nth-child(2) {
				position: relative;
				left: 50px;
			}
		}
	}

	small {
		display: block;
		font-size: 12px;
		font-weight: 600;
	}

	em {
		position: absolute;
		top: 12px;
		left: calc(100% - 12px);
		transform-origin: 0 0;
		transform: rotate(90deg);
		line-height: 1;
		font-style: normal;
		font-size: 11px;
	}

	@for $i from 1 through length($colors) {
		@keyframes animate-#{$i}{
			0% {
				@if $i > 1 {
					box-shadow: -5px -4px 10px rgba(0, 0, 0, 0);
				}

				transform: translate(350px, 270px) rotate(360deg);
			}

			100% {
				@if $i > 1 {
					box-shadow: -5px -4px 10px rgba(0, 0, 0, .08);
				}

				@if $i > 11 {
					transform: translate(350px, 270px) rotate(#{180deg + ($i - 1)*12.25deg + ($i - 11)*15.25deg});
				} @else {
					transform: translate(350px, 270px) rotate(#{180deg + ($i - 1)*12.25deg});
				}

			}
		}

		&:nth-child(#{$i}) {
			@if $i == 1 {
				box-shadow: -5px -4px 10px rgba(0, 0, 0, .08);
			}

			background: nth($colors, $i);
			z-index: #{$i};
			transform: translate(350px, 270px) rotate(360deg);
			animation: animate-#{$i} 1s 1s ease-in-out forwards;
		}
	}

	&:nth-child(12) {
		padding: 12px;
		color: #8aaddb;
		background-image: linear-gradient(75deg, #8aaddb 50%, #fff 50%);
		background-size: 101% 120%;
	}

	&:nth-child(13) {
		padding: 12px;
		color: #6377b9;
		background-image: linear-gradient(75deg, #6377b9 40%, #fff 40%);
		background-size: 101% 120%;
	}

	&:nth-child(14) {
		background-image: repeating-linear-gradient(
				230deg,
				rgba(0, 0, 0, 0),
				rgba(0, 0, 0, 0) 2px,
				rgba(0, 0, 0, 0.2) 2px,
				rgba(0, 0, 0, 0.2) 4px
		);
	}
}
              
            
!

JS

              
                
              
            
!
999px

Console