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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <html>
<body onload="typeWriter()">
  
    
<h1  id="text"></h1>
 
  </body>
</html>
              
            
!

CSS

              
                 body{
  background:black;
  display:flex;
 justify-content: center;
  align-items: center;  
 text-align:center;
}

:root {
  /* Base font size */
  font-size:0.625rem;   
  
  /* Set neon color */
  --neon-text-color: #03A9F4;
  --neon-border-color:#F50057;
}
#text{
  margin-top:10%;
  font-size: 10rem;
  font-weight: 200;
  font-style: italic;
  color: #fff;
  padding: 2rem 6rem 5.5rem;
  border: 0.4rem solid #fff;
  border-radius: 2rem;
  text-transform: uppercase;
  animation: flicker 2.5s infinite alternate;     
}
@media screen and (max-width: 700px) {
  #text{
    font-size:7rem;
  }
}
@media screen and (max-width: 450px) and (min-width:150px)  {
  #text{
    font-size:4rem;}
}
@media screen and (max-width: 100px) and (min-width:20px)  {
  #text{
    font-size:1rem;}
}
#text::-moz-selection {
  background-color: var(--neon-border-color);
  color: var(--neon-text-color);
}

#text::selection {
  background-color: var(--neon-border-color);
  color: var(--neon-text-color);
}

#text:focus {
  outline: none;
}

/* Animate neon flicker */
@keyframes flicker {
    
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
      
        text-shadow:
            -0.2rem -0.2rem 1rem #fff,
            0.2rem 0.2rem 1rem #fff,
            0 0 2rem var(--neon-text-color),
            0 0 4rem var(--neon-text-color),
            0 0 6rem var(--neon-text-color),
            0 0 8rem var(--neon-text-color),
            0 0 10rem var(--neon-text-color);
        
        box-shadow:
            0 0 .5rem #fff,
            inset 0 0 .5rem #fff,
            0 0 2rem var(--neon-border-color),
            inset 0 0 2rem var(--neon-border-color),
            0 0 4rem var(--neon-border-color),
            inset 0 0 4rem var(--neon-border-color);        
    }
    
    20%, 24%, 55% {        
        text-shadow: none;
        box-shadow: none;
    }    
}

 
 
              
            
!

JS

              
                var i = 0;
var txt = 'Welcome'; /* The text */
var speed = 300; /* The speed/duration of the effect in milliseconds */

function typeWriter() {
  if (i < txt.length) {
    document.getElementById("text").innerHTML += txt.charAt(i);
    i++;
    setTimeout(typeWriter, speed);
  }
}
              
            
!
999px

Console