Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                
	<header>
		<div class="container">
			<div class="menu">
				<a href="#" class="logo"><img src="http://www.cinemagic.club/logo.svg"></a>
				<ul>
					<li><a href="#">Cartelera</a></li>
				<li><a href="#">Promociones</a>
					<li><a href="#">Promociones</a></li>
										<li><a href="#">Contacto</a></li>
				</ul>
				<div class="hamburger-menu">
					<div class="bar"></div>
				</div>
			</div>
		</div>
	</header>
  



              
            
!

CSS

              
                body {margin:0px; font-family: 'Montserrat';}
a,
a::after,
a::before{
    -webkit-transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}
a,
a:hover,
a:focus,
a:active{
    outline: none;
    text-decoration: none;
    color: #e76115;
}
*, *::after, *::before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
header{
    position: relative;
    background-image: linear-gradient(to right, #500778, #7e43aa, #6681ea) !important;
    padding: 15px 0;
    width: 100%;
    float: left;
	height: 72px;
}
.menu{
    position: relative;
    float: none;
    width: 100%;
}
.menu ul{
    float: right;
    padding: 0;
    margin: 0;
    list-style: none;
}
.menu ul li{
    float: left;
}
.menu ul li a {
    display: inline-block;
    margin: 5px;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff391;
    position: relative;
    padding: 7px 12px;
    width: initial;
    font-weight: bold;
}

.menu ul li a:hover{
	    color: #f1f0ee;
}
.menu ul li a:active{
	    color: #e76115;
}
.container{
    width: 1170px;
    margin: 0 auto;
}
body .container::after{
    -webkit-transition: all .5s cubic-bezier(1, 0.03, 0, 0.99);
    -moz-transition: all .5s cubic-bezier(1, 0.03, 0, 0.99);
    -ms-transition: all .5s cubic-bezier(1, 0.03, 0, 0.99);
    -o-transition: all .5s cubic-bezier(1, 0.03, 0, 0.99);
    transition: all .5s cubic-bezier(1, 0.03, 0, 0.99);
    position: fixed;
    content: '';
    width: 50px;
    height: 50px;
    float: left;
    top: 3px;
    right: 10.1%;
    transform: scale(0);
    border-radius: 50%;
    z-index: 88;
    background: #7e43aa;
    background: -webkit-linear-gradient(left, #500778 0%, #7e43aa 80%, #6681ea 100%);
    background: linear-gradient(to right, #500778 0%, #6681ea 80%, #500778 100%);
}
body.open-menu .container::after{
    transform: scale(0);
    opacity: 1;
    visibility: visible;
}
.logo{
    top: -9px;
    color: #FFF;
    left: 0;
    position: absolute;
    text-transform: uppercase;
}
.hamburger-menu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 25px;
    bottom: 0;
    margin: auto;
    width: 40px;
    height: 52px;
    cursor: pointer;
    right: 0px;
    z-index: 89;
}
.bar,
.bar::after,
.bar::before {
    width: 40px;
    height: 3px;
}
.bar {
    position: relative;
    transform: translateY(25px);
    background: #FFF;
    transition: all 0ms 300ms;
    top: 6px;
}
.bar.animate {
    background: rgba(255, 255, 255, 0);
}
.bar::before,
.bar::after {
    position: absolute;
    background: #FFF;
    content: '';
    left: 0;
}
.bar::before {
    bottom: 10px;
    transition: bottom 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.bar::after {
    top: 10px;
    transition: top 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.bar.animate::after {
    top: 0;
    transform: rotate(45deg);
    transition: top 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.bar.animate::before {
    bottom: 0;
    transform: rotate(-45deg);
    transition: bottom 300ms cubic-bezier(0.23, 1, 0.32, 1), transform 300ms 300ms cubic-bezier(0.23, 1, 0.32, 1);
}
.content{
    position: relative;
    width: 100%;
    float: left;
}
.resize-message{
    margin: 40vh auto 0;
    display: table;
}
.resize-message span{
    text-transform: uppercase;
    text-align: center;
    display: block;
    color: #666;
}
.resize-message span i{
    font-size: 30px;
}
@media (max-width: 1199px){
    body.open-menu .container::after {
        transform: scale(80);
        opacity: 1;
        visibility: visible;
    }
    .container{
        width: 970px;
    }
}
@media (max-width: 991px){
    .container{
        width: 750px;
    }
    header{
        height: 72px;
    }
    .hamburger-menu {
        opacity: 1;
        visibility: visible;
    }
    .logo{
        z-index: 99;
    }
    .menu ul{
        -webkit-transition: all .3s ease-in-out;
        -moz-transition: all .3s ease-in-out;
        -ms-transition: all .3s ease-in-out;
        -o-transition: all .3s ease-in-out;
        transition: all .3s ease-in-out;
        opacity: 0;
        visibility: hidden;
        z-index: 99;
        padding: 0;
        position: fixed;
        margin: 20vh auto 0;
        list-style: none;
        display: table;
        left: 50px;
        right: 0;
        width: 270px;
    }
    body.open-menu .menu ul{
        -webkit-transition: all .5s ease-in-out;
        -moz-transition: all .5s ease-in-out;
        -ms-transition: all .5s ease-in-out;
        -o-transition: all .5s ease-in-out;
        transition: all .5s ease-in-out;
        -webkit-transition-delay: .3s;
        transition-delay: .3s;
        visibility: visible;
        opacity: 1;
        left: 0;
    }
    .menu ul li{
        width: 100%;
        float: left;
    }
    .menu ul li a{
        font-weight: 600;
        font-size: 20px;
        display: table;
        margin: 5px auto;
    }
}
@media (max-width: 767px){
    .container{
        padding: 0 15px;
        width: 100%;
    }
    body .container::after{
        top: 3px;
        right: 11px;
    }
}

select {
  background: transparent !important;
  border: 0px;
  color: #f0da4b;
  margin-top: 13px;
  font-weight: bold;
  display: block;
}
              
            
!

JS

              
                (function($) {

    // Animate bar menu
    $('.hamburger-menu').on('click', function() {
        $('.bar').toggleClass('animate');
        if( $('body').hasClass('open-menu')){
            $('body').removeClass('open-menu');
        }else{
            $('body').toggleClass('open-menu');
        }
    });

    // Close menu when press esc
    $(document).keyup(function(e) {
        if (e.keyCode == 27) {
            $('.bar').removeClass('animate');
            $('body').removeClass('open-menu');
        }
    });

})(jQuery);
              
            
!
999px

Console