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

              
                <!-- Link to Font Awesome CSS for icons -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">

<!-- Unordered list for browser icons -->
<ul>
  <!-- Microsoft Edge icon -->
  <li>
    <a href="#">
      <i class="fab fa-edge"></i>
    </a>
  </li>
  <!-- Mozilla Firefox icon -->
  <li>
    <a href="#">
      <i class="fab fa-firefox"></i>
    </a>
  </li>
  <!-- Google Chrome icon -->
  <li>
    <a href="#">
      <i class="fab fa-chrome"></i>
    </a>
  </li>
  <!-- Opera icon -->
  <li>
    <a href="#">
      <i class="fab fa-opera"></i>
    </a> 
  </li>
</ul>
              
            
!

CSS

              
                /* Reset default margin and padding, set background color */
body {
  margin: 0;
  padding: 0;
  background: #262626;
}

/* Style for the unordered list */
ul {
  margin: 0;
  padding: 0;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Style for list items */
ul li {
  list-style: none;
  margin: 0 15px;
}

/* Style for anchor tags (icon containers) */
ul li a {
  position: relative; 
  display: block;
  width: 60px;
  height: 60px;
  text-align: center;
  line-height: 63px;
  background: #333;
  border-radius: 50%;
  font-size: 30px;
  color: #666;
  transition: .5s;
}

/* Pseudo-element for icon background */
ul li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffee10;
  transition: .5s;
  transform: scale(.9);
  z-index: -1;
}

/* Hover effect for icon background */
ul li a:hover::before {
  transform: scale(1.1);
  box-shadow: 0 0 15px #ffee10;
}

/* Hover effect for icon */
ul li a:hover {
  color: #ffee10;
  box-shadow: 0 0 5px #ffee10;
  text-shadow: 0 0 5px #ffee10;
}
              
            
!

JS

              
                
              
            
!
999px

Console