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.


                <ul id="menu">
  <li class="button">Home</li>
  <li class="button">Services</li>
  <li class="button">Products</li>
  <li class="button">About</li>
  <li class="button">Contact</li>


                @import url('');

  padding-left: 10px;

  width: 200px;
  list-style-type: none;
  cursor: pointer;
  font-size: 28px;
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;


                let menu = document.getElementById("menu");
let menuButtons = menu.querySelectorAll("li");
let menuButtonsStrings = new Array();

menuButtons.forEach(element => {
    element.addEventListener("mouseover", handleMouseOver);

let speed = 2; //the bigger the value, the slower the menu text will finish animating

function handleMouseOver(event){  
    let button = event.currentTarget;
    let index = [], button);
    let text = menuButtonsStrings[index];
    let textLength = text.length;
    let textProgress = -1;
    let count = 0;

    function randonize(){
        let randString = text.slice(0, textProgress+1);
        for(let i = 0; i<textLength; i++){
            if(i > textProgress){
            let rand = Math.random() * (chars.length-1);
            let round = Math.round(rand);
            randString += (chars[round]);

        button.innerText = "";
        button.innerText = randString;

        if(count > (speed)){
            count = 0;

        if(textProgress <= textLength){
            setTimeout(randonize, 40);


let chars = new Array(