cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

Quick-add: + add another resource

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.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <h1>Click the button below to override autoplay</h1>
<nav class="item-menu">
    <input type="checkbox" href="#" class="menu-open" name="menu-open" id="menu-open"/>
    <label id="menu-open-handler" class="menu-open-button" for="menu-open">
        <span class="plus plus-1"></span>
        <span class="plus plus-2"></span>
    </label>
    <div class="real-menu">
        <a href="#" class="menu-item" data-name="File"> <i class="fa fa-file"></i> </a>
        <a href="#" class="menu-item" data-name="Photo"> <i class="fa fa-image"></i> </a>
        <a href="#" class="menu-item" data-name="Video"> <i class="fa fa-video-camera"></i> </a>
        <a href="#" class="menu-item" data-name="Snippet"> <i class="fa fa-code"></i> </a>
        <a href="#" class="menu-item" data-name="Folder"> <i class="fa fa-folder"></i> </a>
    </div>
</nav>

<!-- filters -->
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" style="width: 0; height: 0;">
    <defs>
    <filter id="shadowed-goo">
        <feGaussianBlur in="SourceGraphic" result="blur" stdDeviation="10" />
        <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 18 -7" result="goo" />
        <feGaussianBlur in="goo" stdDeviation="3" result="shadow" />
        <feColorMatrix in="shadow" mode="matrix" values="0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 -0.2" result="shadow" />
        <feOffset in="shadow" dx="1" dy="1" result="shadow" />
        <feBlend in2="shadow" in="goo" result="goo" />
        <feBlend in2="goo" in="SourceGraphic" result="mix" />
    </filter>
    <filter id="goo">
        <feGaussianBlur in="SourceGraphic" result="blur" stdDeviation="10" />
        <feColorMatrix in="blur" mode="matrix" values="1 0 0 0 0  0 1 0 0 0  0 0 1 0 0  0 0 0 18 -7" result="goo" />
        <feBlend in2="goo" in="SourceGraphic" result="mix" />
    </filter>
    </defs>
</svg>
<div class="inspiration">Inspired from <a href="https://codepen.io/lbebber/pen/pvwZJp" target="_blank">a pen</a> by <a href="https://codepen.io/lbebber" target="_blank">Lucas Bebber</a></div>
            
          
!
            
              body {
    background: #FFFFFF;
    color: #585858;
    font-family: 'Exo 2', sans-serif;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
}

h1 {
    font-weight: 300;
    padding-top: 20px;
    margin: 20px 0;
}

.inspiration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-style: oblique;
}

.item-menu {
    padding-top: 20px;
    height: 250px;
    box-sizing: border-box;
    font-size: 20px;
    text-align: center;
    filter: url("#shadowed-goo");

    .real-menu {
        transform: translate3d(0, -65px, 0);
        transition: transform ease-out 200ms;
    }

    .menu-item {
        background: #12CC66;
        border-radius: 100%;
        width: 80px;
        height: 80px;
        color: white;
        text-align: center;
        line-height: 80px;
        transition: transform ease-out 200ms;
        display: inline-block;
        position: relative;
    }

    .menu-open-button {
        background: #12CC66;
        border-radius: 100%;
        width: 80px;
        height: 80px;
        color: white;
        text-align: center;
        line-height: 80px;
        transition: transform ease-out 200ms;
        display: inline-block;
        position: relative;
        width: 40px;
        height: 40px;
    }

    .menu-open {
        display: none;
    }

    .plus {
        width: 18px;
        height: 2px;
        background: white;
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -9px;
        margin-top: -1px;
        transition: transform 200ms;

        &.plus-1 {
            transform: rotate(90deg) translate3d(0, 0, 0);
        }

        &.plus-2 {
            transform: rotate(0) translate3d(0, 0, 0);
        }
    }

    .menu-item {
        &:hover {
            background: white;
            color: #12CC66;
        }

        &:nth-child(1) {
            transition-duration: 70ms;
            transform: translate3d(171px, 0, 0) scale(0.5);
        }

        &:nth-child(2) {
            transition-duration: 130ms;
            transform: translate3d(85.5px, 0, 0) scale(0.5);
        }

        &:nth-child(3) {
            transition-duration: 190ms;
            transform: translate3d(0, 0, 0) scale(0.5);
        }

        &:nth-child(4) {
            transition-duration: 130ms;
            transform: translate3d(-85.5px, 0, 0) scale(0.5);
        }

        &:nth-child(5) {
            transition-duration: 70ms;
            transform: translate3d(-171px, 0, 0) scale(0.5);
        }

        &:after {
            content: attr(data-name);
            position: absolute;
            font-size: 14px;
            font-weight: 500;
            color: #12CC66;
            line-height: 40px;
            left: 50%;
            white-space: nowrap;
            transform: translate3d(-50%, 0, 0);
            display: none;
        }
    }

    .menu-open-button {
        z-index: 2;
        transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
        transition-duration: 400ms;
        transform: scale(1.1, 1.1) translate3d(0, 0, 0);
        cursor: pointer;

        &:hover {
            transform: scale(1.2, 1.2) translate3d(0, 0, 0);
        }
    }

    .menu-open:checked {
        + .menu-open-button {
            transition-timing-function: linear;
            transition-duration: 200ms;
            transform: scale(1, 1) rotate(-45deg) translate3d(0, 0, 0);
        }

        ~ .real-menu {
            transform: translate3d(0, 5px, 0);
            .menu-item {
                transition-timing-function: cubic-bezier(0.935, 0, 0.34, 1.33);
                transform: translate3d(0, 0, 0);
                &:nth-child(1) {
                    transition-duration: 320ms;
                }

                &:nth-child(2) {
                    transition-duration: 240ms;
                }

                &:nth-child(3) {
                    transition-duration: 160ms;
                }

                &:nth-child(4) {
                    transition-duration: 240ms;
                }

                &:nth-child(5) {
                    transition-duration: 320ms;
                }

                &:after {
                    display: block;
                }
            }
        }
    }
}
            
          
!
            
              var checkbox = document.getElementById('menu-open');

var handler = document.getElementById('menu-open-handler');

var toggleInterval = setInterval(function(){
  checkbox.checked = !checkbox.checked;
}, 2000);

handler.onclick = function(){
  clearInterval(toggleInterval);
};


            
          
!
999px
Loading ..................

Console