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


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


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.


                <div class="microsoft container">
    <p class="marquee">Windows 8 and Windows RT are focused on your life—your friends and family, your apps, and your stuff. With new things like the <a href="">Start screen</a>, <a href="">charms</a>, and a <a href="">Microsoft account</a>, you can spend less time searching and more time doing.</p>
<button class="toggle">Toggle Beautification</button>
<p class="vanity">
    <a href="">@jonathansampson</a> of 
    <a href="">@appendTo</a>


                .container {
    width: 18em;
    height: 8em;
    margin: 1em auto;
    overflow: hidden;
    background: white;
    position: relative;
    box-sizing: border-box;

.marquee {
    top: 6em;
    position: relative;
    box-sizing: border-box;
    animation: marquee 15s linear infinite;

.marquee:hover {
    animation-play-state: paused;

/* Make it move! */
@keyframes marquee {
    0%   { top:   8em }
    100% { top: -11em }

/* Make it look pretty */
.microsoft .marquee {
	margin: 0;
    padding: 0 1em;
    line-height: 1.5em;
    font: 1em 'Segoe UI', Tahoma, Helvetica, Sans-Serif;

.microsoft:before, .microsoft::before,
.microsoft:after,  .microsoft::after {
    left: 0;
    z-index: 1;
    content: '';
    position: absolute;
    pointer-events: none;
    width: 100%; height: 2em;
    background-image: linear-gradient(top, #FFF, rgba(255,255,255,0));

.microsoft:after, .microsoft::after {
    bottom: 0;
    transform: rotate(180deg);

.microsoft:before, .microsoft::before {
    top: 0;

/* Style the links */
.vanity {
    color: #333;
    text-align: center;
    font: .75em 'Segoe UI', Tahoma, Helvetica, Sans-Serif;

.vanity a, .microsoft a {
    color: #1570A6;
    transition: color .5s;
    text-decoration: none;

.vanity a:hover, .microsoft a:hover {
    color: #F65314;

/* Style toggle button */
.toggle {
	display: block;
    margin: 2em auto;


                $(".toggle").on("click", function () {