123

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.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div>
  <span>C</span>
  <span>H</span>
  <span>A</span>
  <span>R</span>
  <span>A</span>
  <span>D</span>
  <span>E</span>
</div>
            
          
!
            
              @import url(https://fonts.googleapis.com/css?family=Oswald:400,700);

$mauve: rgb(102, 35, 69);
$red: rgb(102, 21, 16);
$blue: rgb(39, 110, 151);
$yellow: rgb(175, 133, 45);

body {
  background-color: rgb(0,0,0);
}

div {
  text-align: center;
  margin-top: 10%;
}

span {
  display: inline-block;
  margin-left: -15px;
  font-size: 200px;
  line-height: 200px;
  font-family: "Oswald", sans-serif;
  position: relative;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;  
  animation: slide 2s linear infinite;
  background-size: auto 400px;
  background-position: left 0px; 
  background-image: linear-gradient(to bottom,    
    $mauve 0px, $mauve 100px,
    black 100px,
    $red 102px,$red 130px,   
    black 130px,
    $blue 132px, $blue 180px,
    black 180px,
    $yellow 182px, $yellow 200px,   
    black 200px,
    $mauve 202px, $mauve 240px,   
    black 240px,
    $red 242px, $red 300px,  
    black 300px,
    $blue 302px, $blue 350px,  
    black 350px,
    $yellow 352px, $yellow 398px,
    black 399px, black 400px
  );
   &:nth-child(odd) {
    top: 30px;
    background-image: linear-gradient(to bottom,     $mauve 0px, $mauve 70px,
    black 70px,
    $red 72px,$red 100px,   
    black 100px,
    $blue 102px, $blue 150px,
    black 150px,
    $yellow 152px, $yellow 170px,   
    black 170px,
    $mauve 172px, $mauve 210px,   
    black 210px,
    $red 212px, $red 270px,  
    black 270px,
    $blue 272px, $blue 320px,  
    black 320px,
    $yellow 322px, $yellow 370px
  );
  }
}

@keyframes slide {
  100% {
    background-position: left -400px;    
  }  
}


            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console