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

              
                    <body>
      <div class="grid__container grid__header">
            <div class="grid__logo--header">
                <h3>Site.<span>com</span></h3>
            </div>
            <div class="grid__menu">
                <div class="menu__button" id="menu_button">
                    <span></span>
                    <span></span>
                    <span></span>         
                </div>
              <div id="circleBackground" class="circleMenu">
                <div class="circleMenu--inner"><ul>
                  <li><a href="#">Link</a></li>
                  </ul>
                </div>
              </div>
            </div>
        </div>

  <div class="grid__container grid__main index-page__text"></div>
  <div class="grid__container grid__footer">footer</div>

        <div class="grid-show-menu" id="topMenuWindow">
            <div class="grid-show-menu-window">
                <div class="grid-show-menu-window-ul">
                    <ul>
                        <li><a href="">Cool Link</a></li>
                        <li><a href="">Cool Link</a></li>
                        <li><a href="">Cool Link</a></li>
                        <li><a href="">Cool Link</a></li>
                        <li><a href="">Cool Link</a></li> 
                        <li><a href="">Cool Link</a></li>  
                    </ul>
                </div>

            </div>   
      </div>
       </body>
              
            
!

CSS

              
                * {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;    
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    font-size: 100%;     
    font-weight: 400;

}
a, a:hover,a:focus,a:active {
    text-decoration: none;
}
.grid__header {
    min-height: 164px;
    height: 164px;
    width:100%;
    display: -webkit-flex;
    display: flex;
    background: transparent;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-justify-content: space-between; /* Safari 6.1+ */
    justify-content: space-between;
}
.grid__container {
    max-width: 1200px;
    margin: 0 auto;
}
.grid__body {     
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;    
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

.grid__main {
    -webkit-box-flex: 1;
    -webkit-flex: 1 auto;
    -ms-flex: 1 auto;
    flex: 1 auto;
}
.grid__logo--header {
    padding-left:20px;
}
.grid__logo--header h3 {
    font-size: 2em;
    color: #ff4081;
}
.grid__logo--header h3 span{
    color: #000000;
}
.menu__button {
    color: #ff4081;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    width: 60px;
    height: 45px;
    position: relative;
    margin: 30px auto;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
    z-index: 2;

}
.menu__button--active {
    color: #ff4081;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    width: 60px;
    height: 45px;
    position: relative;
    margin: 30px auto;
    z-index: 3;
    cursor: pointer;
}
.menu__button--active span {
  background: #ffffff;
}

.menu__button span {
  background: #ff4081;
}
.menu__button span,.menu__button--active span {
    display: block;
    position: absolute;
    height: 9px;
    width: 100%;
    
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}
.menu__button span:nth-child(1) {
    top: 0px;
}

.menu__button span:nth-child(2) {
    top: 18px;
}
.menu__button--active span:nth-child(1) {
    top: 18px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
}

.menu__button--active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu__button--active span:nth-child(3) {
    top: 18px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.menu__button span:nth-child(3) {
    top: 36px;
}
.circleMenu--active {
  position:fixed;
  top:0;left:0;
   width: 100vw;
  height: 100vh;
  z-index:2;
  animation-name: circlefill;
  animation-duration: 1.1s;
  animation-fill-mode:forwards;
  display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;    
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}
@keyframes circlefill {
   0% {background-image: radial-gradient(at top right, #ff4081 0%, #fff 0%, #fff 100%);}
  10% {background-image: radial-gradient(at top right, #ff4081 0%, #ff4081 10%, #fff 10%, #fff 100%);}
  20% {background-image: radial-gradient(at top right, #ff4081 0%, #ff4081 20%, #fff 20%, #fff 100%);}
  30% {background-image: radial-gradient(at top right, #ff4081 0%, #ff4081 30%, #fff 30%, #fff 100%);}
  40% {background-image: radial-gradient(at top right, #ff4081 0%, #ff4081 40%, #fff 40%, #fff 100%);}
  50% {background-image: radial-gradient(at top right, #ff4081 0%, #ff4081 50%, #fff 50%, #fff 100%);}
  60% {background-image: radial-gradient(at top right, #ff4081 0%, #ff4081 60%, #fff 60%, #fff 100%);}
  70% {background-image: radial-gradient(at top right, #ff4081 0%, #ff4081 70%, #fff 70%, #fff 100%);}
  80% {background-image: radial-gradient(at top right, #ff4081 0%, #ff4081 80%, #fff 80%, #fff 100%);}
  90% {background-image: radial-gradient(at top right, #ff4081 0%, #ff4081 90%, #fff 90%, #fff 100%);}
  100% {background-image: radial-gradient(at top right, #ff4081 0%, #ff4081 100%);}
}
/* Menu */

.grid-show-menu {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.1); /* Black w/ opacity */

}
.grid-show-menu-window {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;   
    background-color: #ff4081;
    margin: auto;
    height: 80vh;
    max-width: 1200px;
    width: 80%;
    border-radius: 25px;
    align-items: center;
    justify-content: center; 
}

.grid-show-menu-window-ul {
    align-items: center;
    justify-content: center; 
    width: 100%;  
    height: 100px;
    margin: auto; 
    text-align: center;
    margin-top: 30px;
}
.grid-show-menu-window-ul ul {
    list-style: none;
}
.grid-show-menu-window-ul ul li a{
    color: #fff;
    font-size: 2em;    
    line-height: 2.8em;
}
.grid-show-menu-window-ul ul li a:hover,
.grid-show-menu-window-ul ul li a:active,
.grid-show-menu-window-ul ul li a:focus{
    
    color: #eee;
    font-size: 2em;
    
}
              
            
!

JS

              
                (function () {
     var activeModificator = "--active";
    var topMenuButton = document.querySelector("#menu_button");
    var topMenuClassName = 'menu__button';
    var topMenuWindow = document.querySelector('#topMenuWindow');
  var circleMenuWindow = document.querySelector('#circleBackground');

  topMenuButton.addEventListener('click', topMenuButtonChange);


    function topMenuButtonChange() {
        toggleClass(topMenuClassName, topMenuButton);
       // topMenuShow();
      showWindow();
    }

  function showWindow() {
     toggleClass('circleMenu', circleMenuWindow);
  }
    function topMenuShow() {
        topMenuWindow.style.display = (topMenuWindow.style.display === "block") ? "none": "block";
    }
    function toggleClass(className, elem, active) {
        var activeName = (active === undefined) ? activeModificator : active;
        var element = (elem === undefined) ? className : elem;
        element.classList.toggle(className);
        element.classList.toggle(className + activeName);
    }

})();
              
            
!
999px

Console