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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <h1>CSS menu with rolling</h1>
<ul>
    <li><a data-text='CSS' href="#">CSS</a></li>
    <li><a data-text="HTML" href="#">HTML</a></li>
    <li><a data-text="Javascript" href="#">JavaScript</a></li>
    <li><a data-text="About" href="#">About</a></li>
</ul>

<p style="color: white;">source: <a target="_blank" style="font-size: 20px; color: red" href="http://dropthebit.com/235/rolling-stones-css-only-rolling-menu-items/">dropthebit.com</a></p>
              
            
!

CSS

              
                @font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  src: local("Roboto Condensed Regular"), local("RobotoCondensed-Regular"), url(http://themes.googleusercontent.com/static/fonts/robotocondensed/v7/Zd2E9abXLFGSr9G3YK2MsFzqCfRpIA3W6ypxnPISCPA.woff) format("woff");
}
/* line 8, test.scss */
* {
  margin: 0;
  padding: 0;
}

/* line 13, test.scss */
html {
  height: 100%;
  font-family: 'Roboto Condensed';
}

/* line 18, test.scss */
body {
  min-height: 100%;
  background-image: -webkit-radial-gradient(top, circle cover, #252233 0%, #252233 80%);
  background-image: -moz-radial-gradient(top, circle cover, #3c3b52 0%, #252233 80%);
  background-image: -o-radial-gradient(top, circle cover, #3c3b52 0%, #252233 80%);
  background-image: radial-gradient(top, circle cover, #3c3b52 0%, #252233 80%);
  text-align: center;
  padding: 20px 0;
}

/* line 28, test.scss */
h1 {
  font-size: 1.8em;
  color: #fff;
  margin-bottom: 50px;
  letter-spacing: -1px;
  text-transform: capitalize;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
}

/* line 37, test.scss */
ul {
  background-color: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4) inset;
  border-radius: 16px;
  margin: 0;
  padding: 0 30px;
  display: inline-block;
  text-align: center;
  height: 50px;
  overflow: hidden;
}
/* line 49, test.scss */
ul li {
  float: left;
  height: 100%;
  list-style: none;
  margin: 0 30px;
}
/* line 55, test.scss */
ul li * {
  display: inline-block;
  font-size: 1.3em;
  line-height: 50px;
}
/* line 61, test.scss */
ul li a {
  letter-spacing: -1px;
  text-decoration: none;
  text-transform: uppercase;
  color: #FFF;
  margin-top: -50px;
  transition: 0.3s cubic-bezier(0.1, 0.1, 0.5, 1.4);
}
/* line 69, test.scss */
ul li a:hover {
  margin-top: 0;
}
/* line 73, test.scss */
ul li a:before {
  content: attr(data-text);
  display: block;
  color: #CDF745;
}

/*# sourceMappingURL=test_new.css.map */
              
            
!

JS

              
                
              
            
!
999px

Console