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

              
                <main class="bg-grad--blue-to-purple vh-100 vw-100">
<section class="flex items-center vh-100">
  <div class="br3 pa2 pa3-ns bg-white-10 w-90 w-80-m w-40-l center">
      <div class="w-100 h-100 bg-gray br2 relative overflow-hidden pv4 ph3 pa4-ns pb6-ns" id="terminal">
        <div class="pt2">
          <div class="nowrap overflow-hidden white fw4 f4 pb3" id="cd-myapp">~ cd /myapp</div>
          <div id="vtex-watch" class="nowrap overflow-hidden white ffmark fw4 f4 pb3">myapp <span class="washed-blue">vtex watch</span></div>
          <div class="white fw4 f4 pb3"><span class="dib mt1"><svg id="sync-svg" class="h1 w-auto" viewBox="0 0 127 127" xmlns="http://www.w3.org/2000/svg">
  <title>
    Terminal Sync
  </title>
  <g fill="none" fill-rule="evenodd">
    <path fill="#333" d="M0 0h127v127H0z"/>
    <path d="M69.877 20.515c-1.874-.154-3.363-1.595-3.363-3.445v-6.592c0-1.52-1.77-2.386-3.01-1.472L42.967 24.22c-1.858 1.377-1.863 4.114-.006 5.49L63.5 44.973c1.236.92 3.013.053 3.013-1.467v-6.082c0-2.12 1.938-3.768 4.077-3.455 15.018 2.23 26.027 16.44 22.594 32.4-.688 3.2-2.004 6.2-3.807 8.87-1.97 2.93-1.186 6.863 1.733 8.893l.114.074c2.984 2.08 7.24 1.493 9.276-1.494 4.322-6.357 6.856-13.985 6.856-22.203 0-21.04-16.49-38.295-37.48-40zm-12.754 85.97c1.874.154 3.363 1.595 3.363 3.445v6.592c0 1.52 1.77 2.386 3.01 1.472l20.536-15.214c1.858-1.377 1.863-4.114.006-5.49l-20.54-15.263c-1.235-.92-3.012-.053-3.012 1.467v6.082c0 2.12-1.938 3.768-4.077 3.455-15.02-2.23-26.03-16.44-22.6-32.4.69-3.2 2.003-6.2 3.806-8.87 1.97-2.93 1.186-6.863-1.733-8.893l-.115-.074c-2.985-2.08-7.24-1.493-9.277 1.494-4.322 6.357-6.856 13.985-6.856 22.203 0 21.04 16.49 38.295 37.48 40z" fill="#7ED321"/>
  </g>
</svg>
</span> <span id="sending-files">sending files</span></div>
          <div class="white ffmark fw4 f4 pb3 lh-copy"><span><svg id="dot-svg" viewBox="0 0 72 72" xmlns="http://www.w3.org/2000/svg">
  <title>
    terminal-dot
  </title>
  <ellipse cx="352.983" cy="414.113" rx="35.423" ry="35.423" transform="translate(-317 -378)" fill="#7ED321" fill-rule="evenodd"/>
</svg>
</span> <span id="watching-app">watching app <span class="washed-blue">rodrigo.myapp@0.1.1</span></span></div>
          <div class="light-green ffmark fw4 f4 pb3 lh-copy" id="your-url">your url: <a href="" class="washed-blue link">http://rodrigo.myvtex.com</a></div>
        </div>
      </div>
  </div> 
</section>
</main>
              
            
!

CSS

              
                #terminal {
  font-family:'Roboto Mono',-apple-system, BlinkMacSystemFont,'helvetica neue', helvetica,ubuntu,roboto, noto,'segoe ui', arial,sans-serif
}

.bg-gray { background-color: #333; }
.light-green { color: #7ED321; }
.washed-blue { color: #4A90E2;  }

.bg-grad--purple-to-pink {
  background: #C96DD8;
  background: linear-gradient(to bottom right, #3023AE 0%, #C96DD8 100%);
}

.bg-grad--darkblue-to-blue {
  background: #577288;
  background: linear-gradient(to bottom, #2C3E50 0%, #577288 100%);
}

.bg-grad--white-to-nearwhite {
  background: #577288;
  background: linear-gradient(to bottom, #F0F0F0 0%, #DCDCDC 100%);
}

.bg-grad--teal-to-darkteal {
  background: #38d3d5;
  background: linear-gradient(to bottom, #38d3d5 0%, #1aa0a2 100%);
}

.bg-grad--blue-to-purple {
  background: rgba(56,210,213,1);
  background: linear-gradient(135deg, rgba(56,210,213,1) 0%, rgba(158,52,240,1) 100%);
}

.bg-radialgrad--darkblue {
    background: radial-gradient(ellipse farthest-corner at center, #5B6D7E 0%, #354B60 80%);
    background-size: 100%;
    background: radial-gradient(ellipse farthest-corner at center, #5B6D7E 0%, #354B60 80%);
}

.text-shadow-1 {
  text-shadow: 0px 0px 4px rgba( 0, 0, 0, 0.2 )
}
.text-shadow-2 {
  text-shadow: 0px 0px 8px rgba( 0, 0, 0, 0.2 )
}
.text-shadow-3 {
  text-shadow: 2px 2px 4px rgba( 0, 0, 0, 0.2 )
}
.text-shadow-4 {
  text-shadow: 2px 2px 8px rgba( 0, 0, 0, 0.2 )
}
.text-shadow-5 {
  text-shadow: 4px 4px 8px rgba( 0, 0, 0, 0.2 )
}

.teal-text-shadow {
  text-shadow: 3px 3px 0px #1E8B8D;
}

#vtex-watch,
#sending-files,
#sync-svg,
#watching-app,
#dot-svg,
#your-url {
  visibility: hidden;
}

$initial-delay: 1.5s;
$second-delay: $initial-delay + 1s;
$third-delay: $second-delay + 1.5s;
$fourth-delay: $third-delay + 1.5s;
$fifth-delay: $fourth-delay + 1.5s;

#cd-myapp {
  visibility: hidden;
  animation: typing 1s $initial-delay steps(100, end) normal forwards;

  @media (min-width: 768px) {
    animation: typing 3s $initial-delay steps(100, end) normal forwards;
  }
}

#cd-myapp-tiny {
  visibility: hidden;
  animation: typing 1s $initial-delay steps(100, end) normal forwards;
}

#vtex-watch {
  animation: typing 1s $second-delay steps(100, end) normal forwards;

  @media (min-width: 768px) {
    animation: typing 3s $second-delay steps(100, end) normal forwards;
  }
}

#vtex-watch-tiny {
  visibility: hidden;
  animation: typing 1s $second-delay steps(100, end) normal forwards;
}

#sending-files {
  animation: show-command 0.5s $third-delay 1 normal forwards;
}

#sync-svg {
  animation: show-command 0.5s $third-delay 1 normal forwards,
             sync-rotation 1s linear $third-delay 6 normal forwards;
}

#watching-app {
  animation: show-command 0.5s $fourth-delay 1 normal forwards;
}

#dot-svg {
  height: 10px;
  width: 10px;
  animation: show-command 0.5s $fourth-delay 1 normal forwards,
             pulse 2s linear $fourth-delay infinite normal forwards;
}

#your-url {
  animation: show-command 0.5s $fifth-delay 1 normal forwards;
}


@keyframes show-command {
  0%   { visibility: hidden; }
  100% { visibility: visible; }
}

@keyframes sync-rotation {
  0%   { transform: rotate(0deg) }
  100%   { transform: rotate(360deg) }
}

@keyframes pulse {
  0% { opacity: 1 }
  50% { opacity: 0 }
  100% { opacity: 1 }
}

@keyframes typing {
    0% {
      visibility: hidden;
      width: 0%
    }

    100% {
      visibility: visible;
      width: 80%
    }
}

              
            
!

JS

              
                
              
            
!
999px

Console