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

+ 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

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

              
                <nav class="nav-list">
    <a class="nav-list-link" href="#link-article-part-01">
        <span class="icon-caret"></span>
        <span class="title"><span>Teil 1: Welches Shampoo hilft gegen Nikoläuse?</span></span>
    </a>
    <a class="nav-list-link is-highlighted" href="#link-article-part-02">
        <span class="icon-caret"></span>
        <span class="title"><span>Teil 2: Wieviel blaue Flecken muss man sich prügeln lassen um als Schlumpf durchzugehen?</span></span>
    </a>
    <a class="nav-list-link" href="#link-article-part-03">
        <span class="icon-caret"></span>
        <span class="title"><span>Teil 3: Fressen Kartoffelkäfer am Liebsten normale Kartoffeln oder lieber Süßkartoffeln?</span></span>
    </a>
    <a class="nav-list-link" href="#link-article-part-04">
        <span class="icon-caret"></span>
        <span class="title"><span>Teil 4: Was muss ein Kater fressen um Muskelkater zu werden?</span></span>
    </a>
    <a class="nav-list-link" href="#link-article-part-05">
        <span class="icon-caret"></span>
        <span class="title"><span>Teil 5: Warum gibt es angeblich keine dummen Fragen, wenn es doch offenkundig dumme Fragen gibt?</span></span>
    </a>
</nav>

              
            
!

CSS

              
                * {
    box-sizing: border-box;
}
:root {
    --linkColor: #00a175;
    --borderColor: #c0c0c0;
    --transitionTime: 150ms;
}
body {
    font-family: Arial, sans;
}

.nav-list {
    margin: 20px auto;
}
.nav-list-link {
    width: auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 6px 0;
    padding: 6px 0;
    color: var(--linkColor);
    transition: margin var(--transitionTime) ease-in-out;
    text-decoration: none;
}
.nav-list-link .title {
    transition: all var(--transitionTime) ease-in-out;
}
.nav-list-link .title span {
    display: inline;
    background-image: linear-gradient(var(--linkColor), var(--linkColor));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: all var(--transitionTime) ease-in-out;
}
.nav-list-link:hover {
    text-decoration: none;
}
.nav-list-link:hover .title span,
.nav-list-link.is-highlighted .title span {
    background-size: 100% 2px;
}
.nav-list-link:hover .icon-caret,
.nav-list-link.is-highlighted .icon-caret {
    margin-left: 3px;
    color: var(--linkColor);
    border-color: var(--linkColor);
}
.nav-list-link:hover .icon-caret:before,
.nav-list-link:hover .icon-caret:after,
.nav-list-link.is-highlighted .icon-caret:before,
.nav-list-link.is-highlighted .icon-caret:after {
    border-top: 1px solid var(--linkColor);
}
.nav-list-link:hover .title,
.nav-list-link.is-highlighted .title {
    margin-left: -3px;
}

.icon-caret {
    margin-right: 15px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    line-height: 24px;
    color: var(--borderColor);
    border-radius: 50%;
    border: 1px solid var(--borderColor);
    transition: all var(--transitionTime) ease-in-out;
}
.icon-caret:before,
.icon-caret:after {
    content: '';
    width: 9px;
    height: 0;
    display: block;
    margin-left: 7px;
    margin-top: 8px;
    border-top: 1px solid var(--borderColor);
    transform: rotate(45deg);
    transform-origin: 50% 50%;
    transition: all var(--transitionTime) ease-in-out;
}
.icon-caret:after {
    margin-top: 5px;
    transform: rotate(-45deg);
}



              
            
!

JS

              
                
              
            
!
999px

Console