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

Details

Privacy

Go PRO Window blinds lowered to protect code. Code Editor with window blinds (raised) and a light blub turned on.

Keep it secret; keep it safe.

Private Pens are hidden everywhere on CodePen, except to you. You can still share them and other people can see them, they just can't find them through searching or browsing.

Upgrade to PRO

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.

Template

Make Template?

Templates are Pens that can be used to start other Pens quickly from the create menu. The new Pen will copy all the code and settings from the template and make a new Pen (that is not a fork). You can view all of your templates, or learn more in the documentation.

Screenshot

Screenshot or Custom Thumbnail

Screenshots of Pens are shown in mobile browsers, RSS feeds, to users who chose images instead of iframes, and in social media sharing.

This Pen is using the default Screenshot, generated by CodePen. Upgrade to PRO to upload your own thumbnail that will be displayed on previews of this pen throughout the site and when sharing to social media.

Upgrade to PRO

HTML

              
                <nav class="navbar">
    <input id="navbar-close" 
           class="navbar-close" 
           type="radio" 
           name="navbar" 
           checked>
    <input id="navbar-open" 
           class="navbar-open" 
           type="radio" 
           name="navbar">

    <a href="https://animadio.org" 
       title="See the Official Website of Animadio">
        <img src="https://animadio.org/img/logo-nav.png" 
             alt="Animadio Logo">
    </a>
    <ul>
        <li>
            <a href="https://github.com/animadio/animadio" 
               title="See the Source Code">
                <i class="fab fa-github-alt fa-lg"></i>
                <span>Code</span>
            </a>
        </li>
        <li>
            <a href="https://www.npmjs.com/package/animadio" 
               title="See the NPM Page of Animadio">
                <i class="fas fa-cubes fa-lg"></i>
                <span>Package</span>
            </a>
        </li>
        <li>
            <a href="https://www.jsdelivr.com/package/npm/animadio" 
               title="See the JSDelivr Page of Animadio">
                <i class="fas fa-network-wired fa-lg"></i>
                <span>CDN</span>
            </a>
        </li>
    </ul>
    <ul>
        <li>
            <a class="onto-color-gh" 
               href="https://github.com/animadio" 
               title="Animadio Projects">
                <i class="fab fa-github fa-lg"></i>
            </a>
        </li>
        <li>
            <a class="onto-color-in" 
               href="https://twitter.com/animadio" 
               title="Animadio News">
                <i class="fab fa-twitter fa-lg"></i>
            </a>
        </li>
        <li>
            <a class="onto-color-black" 
               href="https://codepen.io/animadio" 
               title="Animadio Code Examples">
                <i class="fab fa-codepen fa-lg"></i>
            </a>
        </li>
    </ul>
    <label for="navbar-close" 
           title="Close the Navigation Menu">
        <i class="fas fa-angle-double-up fa-lg"></i>
    </label>
    <label for="navbar-open" 
           title="Open the Navigation Menu">
        <i class="fas fa-angle-double-down fa-lg"></i>
    </label>
</nav>

<h1 id="head">Age Theme</h1>

<header class="head">
    This is the Age Theme for the CSS Framework Animadio !
</header>

<input id="menu-radio1" 
       class="menu-radio1" 
       type="radio" 
       name="menu" 
       checked>
<input id="menu-radio2" 
       class="menu-radio2" 
       type="radio" 
       name="menu">
<input id="menu-radio3" 
       class="menu-radio3" 
       type="radio" 
       name="menu">

<nav class="menu">
    <label for="menu-radio1">
        <i class="fab fa-css3-alt fa-2x"></i>
        <span>CSS3</span>
    </label>
    <label for="menu-radio2">
        <i class="fab fa-js-square fa-2x"></i>
        <span>JavaScript</span>
    </label>
</nav>

<main class="menu-relay align-center">
    <section class="menu-target1">
        <h2>CSS Elements</h2>

        <nav class="sidebar">
            <input id="sidebar-cdn"
                class="sidebar-check" 
                type="checkbox">
            <label for="sidebar-cdn"
                class="sidebar-open" 
                title="Show Sidebar">
                <i class="far fa-eye fa-lg fa-fw"></i>
            </label>
            <label for="sidebar-cdn"
                title="Hide Sidebar">
                <i class="far fa-eye-slash fa-lg fa-fw"></i>
            </label>
            
            <a href="#head">
                Head
            </a>
            <a href="#btn">
                Btn
            </a>
            <a href="#card">
                Card
            </a>
            <a href="#gallery">
                Gallery
            </a>
            <a href="#table">
                Table
            </a>
            <a href="#form">
                Form
            </a>
            
            <a href="#head" 
                title="Home">
                <i class="fas fa-chevron-circle-up fa-lg fa-fw"></i>
            </a>
        </nav>

        <section id="btn">
            <h3>Btn & Button</h3>

            <ul>
                <li>
                    <a class="btn-primary" 
                       href="#">
                        <i class="fas fa-stop-circle fa-lg"></i>
                        btn-primary
                    </a>
                    <a class="button-primary" 
                       href="#">
                        <i class="far fa-stop-circle fa-lg"></i>
                        button-primary
                    </a>
                </li>

                <li>
                    <a class="btn-secondary" 
                       href="#">
                        <i class="fas fa-stop-circle fa-lg"></i>
                        btn-secondary
                    </a>
                    <a class="button-secondary" 
                       href="#">
                        <i class="far fa-stop-circle fa-lg"></i>
                        button-secondary
                    </a>
                </li>
            </ul>
        </section>

        <section id="card">
            <h3>Card</h3>

            <section class="card-primary">
                <figure>
                    <img src="https://animadio.org/img/logo.png" 
                         alt="Animadio Logo">
                </figure>
                <h4>Primary</h4>
                <p>
                    This is an example of the class 
                    <b>"card-primary"</b>
                </p>
                <a class="btn" 
                   href="#">
                    <i class="fas fa-globe"></i>
                    btn
                </a>
            </section>

            <section class="card-secondary">
                <figure>
                    <img src="https://animadio.org/img/logo.png" 
                         alt="Animadio Logo">
                </figure>
                <h4>Secondary</h4>
                <p>
                    This is an example of the class 
                    <b>"card-secondary"</b>
                </p>
                <a class="btn" 
                   href="#">
                    <i class="fas fa-globe"></i>
                    btn
                </a>
            </section>
        </section>

        <section id="gallery">
            <h3>Gallery</h3>

            <figure class="gallery">
                <figure>
                    <img src="https://animadio.org/img/numbers/1.svg" 
                         alt="Your awesome alternate text">
                    <figcaption>
                        <a href="https://animadio.org" 
                           title="Your awesome title">
                            <h2>Your 1st title</h2>
                            <p>Your 1st description</p>
                            <i class="fas fa-image"></i>
                        </a>
                    </figcaption>
                </figure>
                <figure>
                    <img src="https://animadio.org/img/numbers/2.svg" 
                         alt="Your awesome alternate text">
                    <figcaption>
                        <a href="https://animadio.org" 
                           title="Your awesome title">
                            <h2>Your 2nd title</h2>
                            <p>Your 2nd description</p>
                            <i class="fas fa-image"></i>
                        </a>
                    </figcaption>
                </figure>
                <figure>
                    <img src="https://animadio.org/img/numbers/3.svg" 
                         alt="Your awesome alternate text">
                    <figcaption>
                        <a href="https://animadio.org" 
                           title="Your awesome title">
                            <h2>Your 3rd title</h2>
                            <p>Your 3rd description</p>
                            <i class="fas fa-image"></i>
                        </a>
                    </figcaption>
                </figure>
                <figure>
                    <img src="https://animadio.org/img/numbers/4.svg" 
                         alt="Your awesome alternate text">
                    <figcaption>
                        <a href="https://animadio.org" 
                           title="Your awesome title">
                            <h2>Your 4th title</h2>
                            <p>Your 4th description</p>
                            <i class="fas fa-image"></i>
                        </a>
                    </figcaption>
                </figure>
                <figure>
                    <img src="https://animadio.org/img/numbers/5.svg" 
                         alt="Your awesome alternate text">
                    <figcaption>
                        <a href="https://animadio.org" 
                           title="Your awesome title">
                            <h2>Your 5rd title</h2>
                            <p>Your 5rd description</p>
                            <i class="fas fa-image"></i>
                        </a>
                    </figcaption>
                </figure>
                <figure>
                    <img src="https://animadio.org/img/numbers/6.svg" 
                         alt="Your awesome alternate text">
                    <figcaption>
                        <a href="https://animadio.org" 
                           title="Your awesome title">
                            <h2>Your 6th title</h2>
                            <p>Your 6th description</p>
                            <i class="fas fa-image"></i>
                        </a>
                    </figcaption>
                </figure>
            </figure>
        </section>

        <section id="table">
            <h3>Table</h3>

            <table class="table">
                <caption>Table Example</caption>
                <thead>
                    <tr>
                        <th>Sign</th>
                        <th>Element</th>
                        <th>Vibration</th>
                        <th>Polarity</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>Aries</td>
                        <td>Fire</td>
                        <td>Cardinal</td>
                        <td>Male</td>
                    </tr>
                    <tr>
                        <td>Taurus</td>
                        <td>Earth</td>
                        <td>Fixed</td>
                        <td>Female</td>
                    </tr>
                    <tr>
                        <td>Gemini</td>
                        <td>Air</td>
                        <td>Mutable</td>
                        <td>Male</td>
                    </tr>
                    <tr>
                        <td>Cancer</td>
                        <td>Water</td>
                        <td>Cardinal</td>
                        <td>Female</td>
                    </tr>
                    <tr>
                        <td>Leo</td>
                        <td>Fire</td>
                        <td>Fixed</td>
                        <td>Male</td>
                    </tr>
                    <tr>
                        <td>Virgo</td>
                        <td>Earth</td>
                        <td>Mutable</td>
                        <td>Female</td>
                    </tr>
                    <tr>
                        <td>Libra</td>
                        <td>Air</td>
                        <td>Cardinal</td>
                        <td>Male</td>
                    </tr>
                    <tr>
                        <td>Scorpio</td>
                        <td>Water</td>
                        <td>Fixed</td>
                        <td>Female</td>
                    </tr>
                    <tr>
                        <td>Sagittarius</td>
                        <td>Fire</td>
                        <td>Mutable</td>
                        <td>Male</td>
                    </tr>
                    <tr>
                        <td>Capricorn</td>
                        <td>Earth</td>
                        <td>Cardinal</td>
                        <td>Female</td>
                    </tr>
                    <tr>
                        <td>Aquarius</td>
                        <td>Air</td>
                        <td>Fixed</td>
                        <td>Male</td>
                    </tr>
                    <tr>
                        <td>Pisces</td>
                        <td>Water</td>
                        <td>Mutable</td>
                        <td>Female</td>
                    </tr>
                </tbody>
            </table>
        </section>

        <section id="form">
            <h3>Form</h3>

            <form class="form">
                <fieldset>
                    <legend>Login Example</legend>
                    <ul>
                        <li>
                            <label for="email">
                                Email
                            </label>
                            <input id="email" 
                                   type="email" 
                                   placeholder="me@mail.com">
                        </li>
                        <li>
                            <label for="password">
                                Password
                            </label>
                            <input id="password" 
                                   type="password" 
                                   placeholder="********">
                        </li>
                    </ul>
                    <ul>
                        <li>
                            <input type="reset" 
                                   value="Cancel">
                            <input type="submit" 
                                   value="Send">
                        </li>
                    </ul>
                </fieldset>
            </form>
        </section>
    </section>

    <section class="menu-target2">
        <h2>JS Elements</h2>

        <section>
            <h3>Slider</h3>

            <header id="slider" 
                    class="slider">
                <input id="slider-radio1" 
                       class="slider-radio1" 
                       type="radio" 
                       name="slider" 
                       disabled 
                       checked>
                <input id="slider-radio2" 
                       class="slider-radio2" 
                       type="radio" 
                       name="slider" 
                       disabled>

                <figure id="slider-relay" 
                        class="slider-relay">
                    <figure class="slider-target1">
                        <img src="https://animadio.org/img/animadio.png" 
                             alt="DevsAgency Logo">
                    </figure>
                    <figure class="slider-target2">
                        <img src="https://animadio.org/img/logo.png" 
                             alt="Website Shop Picture">
                    </figure>
                </figure>

                <ul>
                    <li>
                        <button id="slider-previous" 
                                class="slider-previous" 
                                title="Previous (&larr;)">
                            <i class="fas fa-step-backward fa-2x"></i>
                        </button>
                    </li>
                    <li>
                        <button id="slider-auto" 
                                class="slider-auto" 
                                title="Pause (&uarr;)">
                            <i class="fas fa-pause fa-2x"></i>
                        </button>
                    </li>
                    <li class="hide">
                        <button id="slider-random" 
                                class="slider-random" 
                                title="Random (&darr;)">
                            <i class="fas fa-random fa-2x"></i>
                        </button>
                    </li>
                    <li>
                        <button id="slider-next" 
                                class="slider-next" 
                                title="Next (&rarr;)">
                            <i class="fas fa-step-forward fa-2x"></i>
                        </button>
                    </li>
                </ul>

                <ul class="slider-progress">
                    <li>
                        <label for="slider-radio1">
                            <i class="fas fa-dot-circle" 
                               aria-hidden="true"></i>
                        </label>
                    </li>
                    <li>
                        <label for="slider-radio2">
                            <i class="fas fa-dot-circle" 
                               aria-hidden="true"></i>
                        </label>
                    </li>
                </ul>
            </header>
        </section>

        <section class="canvas">
            <h3>Canvas</h3>

            <canvas id="canvas"></canvas>

            <ul class="canvas-controls">
                <li>
                    <label for="canvas-line" 
                           title="Choose Thickness">
                        <i class="fas fa-paint-brush fa-lg"></i>
                    </label>
                    <input id="canvas-line" 
                           type="range" 
                           name="canvas-line" 
                           min="1" 
                           max="10" 
                           step="1" 
                           value="2" 
                           title="Choose Thickness">
                </li>
                <li>
                    <label for="canvas-color" 
                           title="Choose Color">
                        <i class="fas fa-palette fa-lg"></i>
                    </label>
                    <input id="canvas-color" 
                           type="color" 
                           name="canvas-color" 
                           title="Choose Color">
                </li>
                <li>
                    <button class="btn-green btn-lg" 
                            type="button" 
                            id="canvas-cleaner" 
                            title="Erase Canvas">
                        <i class="fas fa-eraser fa-lg"></i>
                    </button>
                </li>
            </ul>
        </section>        
    </section>
</main>

<input id="foot-developers" 
       class="foot-check1" 
       type="checkbox">
<input id="foot-websites" 
       class="foot-check2" 
       type="checkbox">

<footer class="foot">
    <ul class="foot-list">
        <li class="foot-target1">
            <h3>
                <label for="foot-developers">
                    Developers
                    <i class="fas fa-caret-up"></i>
                    <i class="fas fa-caret-down"></i>
                </label>
            </h3>
            <ul class="foot-goal1">
                <li>
                    <a href="https://animadio.org"
                       title="Animadio CSS Framework">
                        Animadio
                    </a>
                </li>
                <li>
                    <a href="https://devsagency.net"
                       title="Developers Agency for Digital Projects">
                        DevsAgency
                    </a>
                </li>
                <li>
                    <a href="https://pam.devsagency.net"
                       title="Pam PHP Microframework">
                        Pam
                    </a>
                </li>
                <li>
                    <a href="https://tools2code.devsagency.net"
                       title="Tools for Coding">
                        Tools2Code
                    </a>
                </li>
            </ul>
        </li>
        <li class="foot-target2">
            <h3>
                <label for="foot-websites">
                    Websites
                    <i class="fas fa-caret-up"></i>
                    <i class="fas fa-caret-down"></i>
                </label>
            </h3>
            <ul class="foot-goal2">
                <li>
                    <a href="https://asperger.philippebeck.net"
                       title="Tests for Asperger Syndrome">
                        Asperger
                    </a>
                </li>
                <li>
                    <a href="https://astronomy.philippebeck.net"
                       title="Medias Library about Astronomy">
                        Astronomy
                    </a>
                </li>
                <li>
                    <a href="https://philippebeck.net"
                       title="Portal to my Projects & Networks">
                        Philippe Beck
                    </a>
                </li>
            </ul>
        </li>
    </ul>

    <ul class="foot-visual">
        <li>
            <a class="btn" 
               href="https://codepen.io/animadio"
               title="Animadio @CodePen">
                <i class="fab fa-codepen fa-2x fa-fw"></i>
            </a>
        </li>
        <li>
            <a class="btn-tw" 
               href="https://twitter.com/animadio"
               title="Animadio @Twitter">
                <i class="fab fa-twitter fa-2x fa-fw"></i>
            </a>
        </li>
        <li>
            <a class="btn-gh" 
               href="https://github.com/animadio"
               title="Animadio @GitHub">
                <i class="fab fa-github fa-2x fa-fw"></i>
            </a>
        </li>
    </ul>
</footer>

              
            
!

CSS

              
                /* This is the Animadio Age Theme */
@import url("https://fonts.googleapis.com/css2?family=Alatsi&family=Fira+Code&family=Gabriela&display=swap");

:root {
  --sans-serif: 'Alatsi', sans-serif;
  --serif: 'Gabriela', serif;
  --monospace: 'Fira Code', monospace;

  --primary: rgb(60, 60, 59);
  --primary-dark: rgba(60, 60, 59, var(--opacity-dark));
  --primary-light: rgba(60, 60, 59, var(--opacity-light));
  --secondary: rgb(29, 161, 242);
  --secondary-dark: rgba(29, 161, 242, var(--opacity-dark));
  --secondary-light: rgba(29, 161, 242, var(--opacity-light));

  --grow: scale(0.5, 0.5);
  --slideT: translate(0, 10vh);
  --turnX: rotate3d(1, 0, 0, 180deg);
  --turnY: rotate3d(0, 1, 0, 180deg);
}

h3 {
  --title-color: var(--black);
}
              
            
!

JS

              
                Animadio.slider();
Animadio.canvas();
              
            
!
999px
We'd ask you for an infinite loop joke, but we'd never hear the end of it.

Console