Pen Settings



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


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


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.


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.


                <div class="loader">
  <div class="rollout">
    <img src="" class="yarn" />
  <p class="loading-text">Loading</p>
  <a href="" target="_blank">The Infinite Canvas</a> + <a href="" target="_blank">Rachel Nabors</a>
The secret is to have the yarn string set as a background here on .rollout,
  but set .rollout's width to 0;
  .yarn is positioned absolutely to .rollout, aligned right;
  If we animate .yarn's width to grow wider to the right,
  .yarn will follow;
  Set a rotation transform on .yarn, and it will look
  like it's rolling out! 


                @import "compass/css3";

.rollout {
  background: url( no-repeat 0 120%;
	@include background-size(400px 24px);
	height: 40px;
	position: absolute; left: 50%; margin-left: -200px;
	@include animation(unrolling-strand 6s cubic-bezier(.57,.27,.46,.79) infinite forwards);
	width: 0;

@include keyframes(unrolling-strand) {
	60% {
		opacity: 1;
		width: 400px;
	70% {
		opacity: 0;
		width: 400px;
	100% {
		opacity: 0;
		width: 400px;

.loading-text {
	@include animation(loading-fadein 6s cubic-bezier(.57,.27,.46,.79) infinite forwards);
	opacity: 0;
	text-align: center;

@include keyframes(loading-fadein) {
	65% { opacity: 0; }
	82.5% { opacity: 1; }
	100% { opacity: 0; }

.yarn {
	@include animation(rolling-yarn 6s cubic-bezier(.57,.27,.46,.79) infinite forwards);
	position: absolute;
	right: -20px; top: 0;
	width: 40px;

@include keyframes(rolling-yarn) {
	60% { @include rotate(1146deg); }
	100% { @include rotate(1146deg); }

@import url(;

body {
  background: #c4c5cb;
  color: #747078;
  font-family: Crafty Girls, cursive;
  font-size: 14px;
  text-align: center;

a {font-family: sans-serif; }
a:link { color: #753493; }
a:visited { color: #56257f; }
a:hover, a:active, a:focus { color: #2d0d3c; }

.loader {
  position: relative;
  width: 100%; top: 100px;

p {
  font-size: 30px;
  margin-bottom: 1em;