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

+ 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.


    <li><a href="#0">One</a></li>
    <li><a href="#0">Two</a></li>
    <li><a href="#0">Three</a></li>


                @import "bourbon";

@import url(;

@mixin va ($pos: relative, $top: 50%) {
	position: $pos;
	top: $top;
	transform: translateY(-50%);

html {
  height: 100%;

body {
  position: relative;
  height: 100%;
  background-color: #dc143c;
  font: normal 125%/1.5 "Avenir Next", "Source Sans Pro", sans-serif;
  color: rgba(#fff,1);
  text-shadow: 0 1px 1px rgba(#000,.2);

nav {
  text-align: center;
  /* background-color: gold; */
  @include va;

nav ul {
  display: inline-block;
  transform: translate3d(0, 0, 0);

nav li {
  /* float: left; */
  display: inline-block;

nav a {
  position: relative;
  display: block;
  padding: 0 40px;
  height: 60px;
  line-height: 60px;
  text-decoration: none;
  color: #fff;

nav a:after {
  position: absolute;
  // This makes the 'border-width' 0, by moving its left and right side 
  // to the middle. This way the animation
  // starts from the center (anchor-point) and expands outwards.
  left: 50%;
  right: 50%;
  // Or offset the anchor-point from which the animation expands. 
  // As long as it adds up to 100%.
  // left: 70%;
  // right: 30%;
  // It is also possible to reverse this effect, e.g.,
  // set the values here to 40px and on :hover to 50%.

  height: 3px;
  bottom: 10px;
  content: "";
  // background-color: lightsalmon;
  background-color: darken(#dc143c,15%);
  transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform: translate3d(0, 0, 0);

nav a:hover:after {
  left: 40px;
  right: 42px;



// This effect is also possible with
// transform: scaleX;