Pen Settings

HTML

CSS

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

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

Auto Save

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="line-group">
  <div class="line v1"></div>
  <div class="line v2"></div>
  <div class="line v3"></div>
  <div class="line v4"></div>
  <div class="line v5"></div>
  <div class="line v6"></div>
  <div class="line v7"></div>
  <div class="line v8"></div>
  <div class="line v9"></div>
  <div class="line v10"></div>
  <div class="line v11"></div>
  <div class="line v12"></div>
  <div class="line v13"></div>
  <div class="line v14"></div>
  <div class="line v15"></div>
  <div class="line v16"></div>
  <div class="line v17"></div>
  <div class="line v18"></div>
  <div class="line v19"></div>
  <div class="line v20"></div>
  <div class="line v21"></div>
  <div class="line v22"></div>
  <div class="line v23"></div>
  <div class="line v24"></div>
  <div class="line v25"></div>
</div>

              
            
!

CSS

              
                *,
*:before,
*:after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #002e37;
}

.line-group {
  border-radius: 50%;
  overflow: hidden;
  max-width: 30vw;
  max-height: 30vw;
  width: 100%;
}

.line {
  height: 2vw;
  widht: 100%;
  background: linear-gradient(-45deg, #ffeaf7, #fda4c3, #002e37);
	background-size: 200% 200%;
  animation: gradient 5s ease infinite alternate;
}

@for $i from 1 through 27 {
  .v#{$i} { animation-delay: $i * 0.05s; }
}

@keyframes gradient {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}
              
            
!

JS

              
                
              
            
!
999px

Console