Menu Shelf

Developer
Size
7,738 Kb
Views
72,864

How do I make an menu shelf?

What is a menu shelf? How do you make a menu shelf? This script and codes were developed by Alex Coven on 11 August 2022, Thursday.

Menu Shelf Previews

Menu Shelf - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Menu Shelf</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <header> <div class="nav"> <div class="logo-menu"> <svg x="0px" y="0px" width="50px" height="44px" cx="50" cy="50" viewBox="0 -3 50 50">
<defs>
</defs>
<g> <g class="lines"> <line class="firstline" x1="17.1" y1="29.2" x2="40" y2="29.2"/>
<line class="lastline" x1="17.1" y1="14.2" x2="40" y2="14.2"/> <line class="middleline" x1="17.1" y1="21.6" x2="40" y2="21.6"/></g> <path class="hexagon" cx="50" cy="50" d="M49,20.1L38.4,1.8C37.8,0.7,36.5,0,35.3,0H14.2c-1.2,0-2.5,0.7-3.2,1.8L0.5,20.1C0.2,20.6,0,21.3,0,21.9 c0,0.7,0.2,1.3,0.5,1.8L11,42c0.6,1.1,1.9,1.8,3.2,1.8h21.1c1.2,0,2.5-0.7,3.2-1.8L49,23.7c0.3-0.5,0.5-1.2,0.5-1.8 C49.4,21.3,49.3,20.6,49,20.1z M45,21.9c0,0.3-0.1,0.6-0.2,0.8l-9.3,16.1c-0.3,0.5-0.9,0.8-1.5,0.8H15.4c-0.6,0-1.2-0.3-1.5-0.8 L4.6,22.8c-0.1-0.2-0.2-0.5-0.2-0.8s0.1-0.6,0.2-0.8L13.9,5c0.3-0.5,0.9-0.8,1.5-0.8H34c0.6,0,1.2,0.3,1.5,0.8l9.3,16.1 C44.9,21.3,45,21.6,45,21.9z"/> <path class="ac" d="M34.6,10.5h-3.4c-0.3,0-0.5,0.2-0.5,0.5v11.6c-0.5,4.7-5.5,8.1-10.7,5.7c-1.3-0.6-2.3-1.7-2.9-2.9 c-2.6-5.4,1.3-10.7,6.4-10.7c0.9,0,1.7,0.2,2.5,0.5l0.4,0.2c0.4,0.2,0.7,0.3,1,0.6c0.4,0.2,1,0.1,1-0.7v-2.4c0-0.8,0-1.6-1.3-2 c0,0,0,0-0.7-0.2l0,0l0,0c-0.9-0.2-1.9-0.4-2.9-0.4c-8,0-14.1,8.1-10.7,16.5c1.1,2.7,3.3,4.9,6,6c4.5,1.8,8.8,0.9,11.9-1.6 c0,0.9,0,1.5,0,1.6c0,0.3,0.2,0.5,0.5,0.5c0.1,0,0.4,0,0.8,0c0.1,0,0.1,0,0.2,0h2.5c0.3,0,0.5-0.2,0.5-0.5V11.1 C35.1,10.8,34.9,10.5,34.6,10.5z"/>
</g>
</svg> </div> </div> <div class="navigation"> <div class="container"> <div class="menu-shelf"> <a class="logo" href="#"> <svg class="logo" x="0px" y="0px" width="50px" height="44px"> <defs> </defs> <g> <path class="hexagon" d="M49,20.1L38.4,1.8C37.8,0.7,36.5,0,35.3,0H14.2c-1.2,0-2.5,0.7-3.2,1.8L0.5,20.1C0.2,20.6,0,21.3,0,21.9 c0,0.7,0.2,1.3,0.5,1.8L11,42c0.6,1.1,1.9,1.8,3.2,1.8h21.1c1.2,0,2.5-0.7,3.2-1.8L49,23.7c0.3-0.5,0.5-1.2,0.5-1.8 C49.4,21.3,49.3,20.6,49,20.1z M45,21.9c0,0.3-0.1,0.6-0.2,0.8l-9.3,16.1c-0.3,0.5-0.9,0.8-1.5,0.8H15.4c-0.6,0-1.2-0.3-1.5-0.8 L4.6,22.8c-0.1-0.2-0.2-0.5-0.2-0.8s0.1-0.6,0.2-0.8L13.9,5c0.3-0.5,0.9-0.8,1.5-0.8H34c0.6,0,1.2,0.3,1.5,0.8l9.3,16.1 C44.9,21.3,45,21.6,45,21.9z"/> <path class="ac" d="M34.6,10.5h-3.4c-0.3,0-0.5,0.2-0.5,0.5v11.6c-0.5,4.7-5.5,8.1-10.7,5.7c-1.3-0.6-2.3-1.7-2.9-2.9 c-2.6-5.4,1.3-10.7,6.4-10.7c0.9,0,1.7,0.2,2.5,0.5l0.4,0.2c0.4,0.2,0.7,0.3,1,0.6c0.4,0.2,1,0.1,1-0.7v-2.4c0-0.8,0-1.6-1.3-2 c0,0,0,0-0.7-0.2l0,0l0,0c-0.9-0.2-1.9-0.4-2.9-0.4c-8,0-14.1,8.1-10.7,16.5c1.1,2.7,3.3,4.9,6,6c4.5,1.8,8.8,0.9,11.9-1.6 c0,0.9,0,1.5,0,1.6c0,0.3,0.2,0.5,0.5,0.5c0.1,0,0.4,0,0.8,0c0.1,0,0.1,0,0.2,0h2.5c0.3,0,0.5-0.2,0.5-0.5V11.1 C35.1,10.8,34.9,10.5,34.6,10.5z"/> </g> </svg> </a> <h2> Graphic Design <br> Custom Code <br> Lettering </h2> <div class="tab"> <ul class="tabs"> <li><a href="#">About</a></li> <li><a href="#">Services</a></li> <li><a href="#">Contact</a></li> </ul> <div class="tab_content"> <div class="tabs_item active_tab_content"> <p> Alex Coven is a freelance designer and web developer living in Chicago. He has worked with a variety of clients and on many diverse projects. <a href="#"><button class="text">VIEW RESUME</button></a> </p> </div> <div class="tabs_item"> <div class="half"> <p> Branding & Logo <br> Interface Design <br> Web Development <br> Illustration <br> </p> </div> <div class="half"> <p> Hand Lettering <br> Art Direction <br> Asset Animation <br> Project Managment <br> </p> </div> </div> <div class="tabs_item"> <div class="half"> <h4>Get in touch</h4> <p class="contact"> <a href="mailto:[email protected]">[email protected]</a> <br> <a href="#">216 409 1248</a> <br> <a href="#">Chicago, IL</a><br></p> </div> <div class="half contact-half"> </div> </div> </div> </div> <footer> <ul class="social"> <li></li> <a href="#"><li class="entypo-instagrem"></li></a> <a href="#"><li class="entypo-dribbble"></li></a> <a href="#"><li class="entypo-window"></li></a> <a href="#"><li class="entypo-behance"></li></a> <a href="#"><li class="entypo-linkedin"></li></a> <li></li> </ul> </footer> </div> </div> </div>
<div class="menu-bg"></div>
</header>
<ul class="pagination">	<a href="#01"><li></li></a>	<a href="#02"><li></li></a>	<a href="#03"><li></li></a>	<a href="#04"><li></li></a>	<a href="#05"><li></li></a>	</ul>	<div id="hero">	<div class="container">	<h4>Hi I'm Alex Coven&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;I Wear 3 Hats</h4>	<h1>Graphic Designer<br>	Web Developer<br>	& Letterer</h1>	</div>	</div>	<div id="projects">	<section id="01">	<div class="container dark">	<div class="ui-info">	<div class="full-line"></div>	<span>	<h4>WORK</h4>	<h4>01</h4>	</span>	</div>	<div class="project-details">	<h4>BRANDING & UI / UX DESIGN</h4>	<h1>SidePocket Mobile App</h1>	</a href="#"><button>VIEW CASE STUDY</button></a>	</div>	</div>	</section>	<section id="02">	<div class="container dark">	<div class="ui-info">	<div class="full-line"></div>	<span>	<h4>WORK</h4>	<h4>02</h4>	</span>	</div>	<div class="project-details">	<h4>BRANDING & UI DESIGN</h4>	<h1>Retail Equity Partners Holdings LLC</h1>	</a href="#"><button>VIEW CASE STUDY</button></a>	</div>	</div>	</section>	<section id="03">	<div class="container dark">	<div class="ui-info">	<div class="full-line"></div>	<span>	<h4>WORK</h4>	<h4>03</h4>	</span>	</div>	<div class="project-details">	<h4>BRANDING & WEB DESIGN</h4>	<h1>Retail Equity Partners Holdings LLC</h1>	</a href="#"><button>VIEW CASE STUDY</button></a>	</div>	</div>	</section>	<section id="04">	<div class="container dark">	<div class="ui-info">	<div class="full-line"></div>	<span>	<h4>WORK</h4>	<h4>04</h4>	</span>	</div>	<div class="project-details">	<h4>UI / UX DESIGN</h4>	<h1>Retail Equity Partners Holdings LLC</h1>	</a href="#"><button>VIEW CASE STUDY</button></a>	</div>	</div>	</section>	<section id="05">	<div class="container dark">	<div class="ui-info">	<div class="full-line"></div>	<span>	<h4>WORK</h4>	<h4>05</h4>	</span>	</div>	<div class="project-details">	<h4>WORK</h4>	<h1>Retail Equity Partners Holdings LLC</h1>	</a href="#"><button>VIEW CASE STUDY</button></a>	</div>	</div>	</section>	</div> <script src='https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Menu Shelf - Script Codes CSS Codes

@import url(http://weloveiconfonts.com/api/?family=entypo);
/* entypo */
[class*="entypo-"]:before { font-family: 'entypo', sans-serif;
}
h1, h2 { font-family: "brandon-grotesque",sans-serif!important; text-transform: uppercase!important; font-weight: 700!important; }
h4, h5, h6 { font-family: "proxima nova",sans-serif!important; text-transform: uppercase!important; font-weight: 600!important; } p { font-family: "proxima nova",sans-serif!important; }
/* Brandon */
* { box-sizing: border-box;
}
*::-moz-selection { background: transparent; color: #37CCC9;
}
*::selection { background: transparent; color: #37CCC9;
}
::-webkit-scrollbar {
display: none;
}
p { color: #888; font-size: 12px; font-family: 'Lato', sans-serif; font-weight: lighter; line-height: 24px;
}
h1 {
/* font-family: brandon-grotesque, sans-serif;*/ font-family: 'Noto Serif', serif; font-size: 53px; font-weight: bold;
/* text-transform: uppercase;*/ letter-spacing: 1px; line-height: 62px; color: #3d3d3d; margin:0;
}
h2 {
/* font-family: brandon-grotesque, sans-serif;*/ font-family: 'Noto Serif', serif; font-size: 30px; font-weight: bold;
/* text-transform: uppercase;*/ letter-spacing: 1px; line-height: 34px; color: #3d3d3d; margin:0;
}
h4 {
/* font-family: brandon-grotesque, sans-serif;*/ font-family: 'Lato', sans-serif; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: 3px; line-height: 34px; color: #cacaca;
}
button { background: transparent; border: 2px solid #fff; /* margin: 0; */ padding: 10px 20px; color: #fff; letter-spacing: 2px; font-size: 10px; font-family: proxima nova, sans-serif; font-weight: 600; position: relative; z-index:2; cursor: pointer;
}
button:hover { color:#3d3d3d;
}
button:hover:after { width: 100%; opacity: 1;
}
button:after { opacity: 0; content: ''; background: #fff; width: 0; height: 100%; top: 0; margin: 0px 0px 0px -20px; display: block; position: absolute; z-index: -1;
}
button:focus { outline: 0px;
}
button.text { background: transparent; outline: 0; border: 0; text-transform: uppercase; letter-spacing: 1px; font-size: 10px; font-weight: bold; text-align: left; width: 100%; padding: 0;
}
ul {padding: 0;}
li { list-style: none;
}
.mob_open { display: block;
}
body { background: #f0f0f0; margin: 0; left: 80px; margin-right: 80px; position: relative; overflow-x:hidden;
}
/*#main { margin: 0; left: 80px; margin-right: 80px; position: relative;
}*/
body.homepage {
}
.container { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-flow: row wrap; -ms-flex-flow: row wrap; flex-flow: row wrap;
}
.navigation { background: rgba(0, 0, 0, 0); position: fixed; z-index: 99999;
}
.open-nav { background: rgba(0, 0, 0, 0.5);
}
.menu-shelf { background: #fff; width: 45vw; height: 100vh; position: relative; overflow: hidden; display: none; max-width: 450px;
}
.navigation:after { content: ''; background: rgba(0,0,0,0); height: 100vh; width: 100vw; display: block; position: absolute; top: 0; left: 0; z-index: -1; display:none;
}
.open-nav + .navigation:after { background: rgba(0,0,0,0.25); display:block;
}
.menu-shelf > * { opacity: 0; -webkit-transition: 0.1s opacity ease-in-out, 0.5s transform ease-in-out; transition: 0.1s opacity ease-in-out, 0.5s transform ease-in-out; -webkit-transform: translate(0px, 10px); transform: translate(0px, 10px);
}
.open-nav .menu-shelf > * { opacity: 1; -webkit-transition: 0.5s opacity ease-in-out, 0.5s transform ease-in-out; transition: 0.5s opacity ease-in-out, 0.5s transform ease-in-out; -webkit-transition-delay: 0.35s; transition-delay: 0.35s; -webkit-transform: translate(0px, 0px); transform: translate(0px, 0px);
}
.open-nav .menu-shelf > *:nth-child(1) { -webkit-transition-delay: 0.35s; transition-delay: 0.35s;
}
.open-nav .menu-shelf > *:nth-child(2) { -webkit-transition-delay: 0.5s; transition-delay: 0.5s;
}
.open-nav .menu-shelf > *:nth-child(3) { -webkit-transition-delay: 0.6s; transition-delay: 0.6s;
}
.open-nav .menu-shelf > *:nth-child(4) { -webkit-transition-delay: 0.7s; transition-delay: 0.7s;
}
.open-nav .menu-shelf > *:nth-child(5) { -webkit-transition-delay: 0.8s; transition-delay: 0.8s;
}
.open-nav .menu-shelf > *:nth-child(6) { -webkit-transition-delay: 0.9s; transition-delay: 0.9s;
}
.menu-shelf ul.social a li { -webkit-transform: rotatey(180deg); transform: rotatey(180deg);
}
.open-nav .menu-shelf ul.social a li { -webkit-transition: 0.5s transform ease-in-out; transition: 0.5s transform ease-in-out; -webkit-transform: rotatey(0deg); transform: rotatey(0deg); -webkit-transition-delay: 0.6s; transition-delay: 0.6s;
}
.open-nav .menu-shelf ul.social li:before { -webkit-transition: 0.3s color ease-in-out; transition: 0.3s color ease-in-out; -webkit-transition-delay: 0s; transition-delay: 0s;
}
.social a { padding: 0px 25px;
}
.menu-shelf svg.logo { fill: #39CCC7; margin: 50px;
}
.menu-shelf h2 { padding-left: 50px; line-height: 45px; letter-spacing: 1px; font-size: 40px;
}
.menu-bg { position: fixed; display: none; width: 100%; height: 100vh; background: rgba(0,0,0,0); transition:1s all ease-in-out;
}
.open-nav + .menu-bg { display: block; background: rgba(0,0,0,0.5);
}
.menu-shelf ul.tabs { margin-top: 50px; margin-bottom: 0px; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-flex-flow: row wrap; -ms-flex-flow: row wrap; flex-flow: row wrap; -webkit-box-align: center; -webkit-align-items: center; -ms-flex-align: center; align-items: center; border-top: 2px solid #f0f0f0;
}
.menu-shelf ul.tabs:after { content: ''; width: 100%; margin-top: -2px; border-bottom: 2px solid #f0f0f0; z-index: 0;
}
.menu-shelf ul.tabs li a { color: #3d3d3d; text-decoration: none; width: 100%; height: 100%; display: block; cursor: pointer;
}
.menu-shelf ul.tabs li:hover > a { color: #37ccc9;
}
.menu-shelf ul.tabs li.current > a { color: #37ccc9;
}
.menu-shelf ul.tabs li > a:hover { cursor: pointer;
}
.menu-shelf ul.tabs li { -webkit-box-flex: 1; -webkit-flex: 1 auto; -ms-flex: 1 auto; flex: 1 auto; text-align: center; letter-spacing: 2px; text-transform: uppercase; font-family: lato, sans-serif; font-weight: bold; font-size: 10px; display: relative; line-height: 100px;
}
.menu-shelf ul.tabs li:before { content: ''; width: 2px; height: 50px; background: #f0f0f0; display: block; position: absolute; margin-top: 25px;
}
.menu-shelf ul.tabs li > a:after { content: ''; display: block; position: relative; height: 2px; width: 0%; background: #39CCC7; z-index: 1;
}
.menu-shelf ul.tabs li.current > a:after,
.menu-shelf ul.tabs li:hover > a:after { width: 100%;
}
.menu-shelf ul.tabs:hover > li.current > a:after { width: 0%;
}
.menu-shelf ul.tabs li.current:hover > a:after { width: 100%;
}
.menu-shelf ul.tabs li:first-child:before { display: none;
}
.tabs_item { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex;
}
/*.open-nav .tab_content .tabs_item:nth-child(1) { opacity: 1;
} this is used to fix about section probably won't need it*/
.tab_content { overflow: hidden;
}
.open-nav .tab_content .tabs_item { opacity: 0; -webkit-transform: translatey(20px); transform: translatey(20px); -webkit-transition: 0.5s opacity ease-in-out, 0.5s transform ease-in-out; transition: 0.5s opacity ease-in-out, 0.5s transform ease-in-out;
}
.open-nav .tab_content .active_tab_content { opacity: 1; -webkit-transform: translatey(0px); transform: translatey(0px); -webkit-transition: 1s opacity ease-in-out, 0.6s transform ease-in-out; transition: 1s opacity ease-in-out, 0.6s transform ease-in-out;
}
.half { -webkit-box-flex: 1; -webkit-flex: 1 auto; -ms-flex: 1 auto; flex: 1 auto; z-index:1;
}
.contact-half { background-image: url(/assets/img/contact_ac.png); background-size: 100%; background-repeat: no-repeat; background-position: bottom; width: 65%; height: 34vh; right: -10px; bottom: -55px; position: absolute; z-index: 0;
}
.menu-shelf .half p { padding: 50px; text-align: left;
}
.menu-shelf .half:last-child > p { padding-left: 0px;
}
.menu-shelf .half img { margin-left: -91px; margin-top: 22px; z-index: 0;
}
.menu-shelf .half h4 { padding: 50px 0px 0px 50px;
}
.menu-shelf .half p.contact { padding: 0px 50px;
}
.menu-shelf p { width: 100%; text-align: left; padding: 50px 50px;
}
.menu-shelf a { text-decoration: none; color: #888;
}
.menu-shelf a:hover { color: #37CCC9;
}
.menu-shelf button { margin-top: 20px; color: #cacaca; cursor: pointer;
}
.menu-shelf footer { border-top: 2px solid #f0f0f0; position: absolute; bottom: 0px; height: 50px; width: 100%; background: #fff;
}
ul.social { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; display: flex; -webkit-box-pack: center; -webkit-justify-content: center; -ms-flex-pack: center; justify-content: center; margin-top: 17px;
}
ul.social li { -webkit-box-flex: 1; -webkit-flex: 1 auto; -ms-flex: 1 auto; flex: 1 auto; color: #888; text-align: center; font-size: 14px;
}
ul.social li:hover { color: #37CCC9;
}
.nav { width: 80px; height: 100vh; background: #fff; position: fixed; left: 0; border-right: 2px solid #f0f0f0; z-index: 9999;
}
a.logo:after { content: 'ALEX COVEN'; width: 0px; font-size: 26px; letter-spacing: 1px; font-family: sans-serif; font-weight: 800; color: #3d3d3d; display: block; position: absolute; top: 58px; left: 109px; overflow: hidden; white-space: nowrap; -webkit-transition:0.5s all ease-in-out; transition:0.5s all ease-in-out;
}
a.logo:hover:after { width: 200px;
}
.logo-menu { cursor: pointer; display: block; margin: 47vh 0; cursor: pointer;
}
.logo-menu svg { display: block; margin: 0 auto; fill: #39CCC7;
}
/* Transitions */
.logo-menu svg,
.hexagon,
.ac,
line,
.navigation,
.open-nav,
.menu-shelf ul.tabs li > a:after,
ul.pagination a li,
button:after,
button { -webkit-transition: 0.5s all cubic-bezier(.87, -.41, .19, 1.44); transition: 0.5s all cubic-bezier(.87, -.41, .19, 1.44);
}
.open-nav .menu-shelf { -webkit-animation: shelf 0.5s forwards linear alternate; animation: shelf 0.5s forwards linear alternate; box-sizing: content-box;
}
a,
.menu-shelf ul.tabs li { -webkit-transition: 0.3s all ease-in-out, 0s z-index ease-in-out, 0s border ease-in-out; transition: 0.3s all ease-in-out, 0s z-index ease-in-out, 0s border ease-in-out;
}
.firstline,
.lastline,
.middleline { -webkit-transition: 0.3s all cubic-bezier(.87, -.41, .19, 1.44); transition: 0.3s all cubic-bezier(.87, -.41, .19, 1.44);
}
.logo-menu svg:hover { -webkit-transform: rotate(120deg); transform: rotate(120deg);
}
.logo-menu svg:hover .ac { -webkit-transform: translate(-3.7px, -3.5px) rotate(-180deg); transform: translate(-3.7px, -3.5px) rotate(-180deg); opacity: 0;
}
.logo-menu svg:hover line { stroke-dashoffset: 100; -webkit-animation: dash 0.3s linear forwards alternate; animation: dash 0.3s linear forwards alternate; -webkit-animation-delay: 0.15s; animation-delay: 0.15s;
}
.logo-menu svg line { -webkit-animation: undash 0.3s linear forwards alternate; animation: undash 0.3s linear forwards alternate;
}
.ac {}
.lines { -webkit-transform: rotate(60deg) translate(5.5px, -32.5px); transform: rotate(60deg) translate(5.5px, -32.5px); opacity: 0; -webkit-transition: 0.3s opacity ease-in-out; transition: 0.3s opacity ease-in-out; -webkit-transition-delay: 0.3s; transition-delay: 0.3s;
}
svg:hover .lines,
svg.click .lines { opacity: 1; -webkit-transition: 0.3s opacity ease-in-out; transition: 0.3s opacity ease-in-out; -webkit-transition-delay: 0s; transition-delay: 0s;
}
.logo-menu svg:hover .firstline { -webkit-transform: translatey(2px); transform: translatey(2px); -webkit-transition-delay: 0.2s; transition-delay: 0.2s;
}
.logo-menu svg.click .firstline { -webkit-transform: rotate(45deg) translate(7px, -32px); transform: rotate(45deg) translate(7px, -32px);
}
.logo-menu svg:hover .lastline { -webkit-transform: translatey(-2px); transform: translatey(-2px); -webkit-transition-delay: 0.2s; transition-delay: 0.2s;
}
.logo-menu svg.click .hexagon { opacity: 0;
}
/* .logo-menu svg.click:hover .hexagon { opacity:0;
} */
.logo-menu svg:hover .hexagon { opacity: 0;
}
.logo-menu svg.click .lastline { -webkit-transform: rotate(-45deg) translate(-26px, 21px); transform: rotate(-45deg) translate(-26px, 21px);
}
.logo-menu svg.click:hover { -webkit-transform: rotate(120deg); transform: rotate(120deg);
}
.redraw { -webkit-animation: dash 0.4s forwards linear; animation: dash 0.4s forwards linear; -webkit-animation-delay: 0.4s; animation-delay: 0.4s;
}
.logo-menu svg.click .middleline { -webkit-animation: undash 0.4s forwards linear; animation: undash 0.4s forwards linear;
}
.logo-menu svg.click { -webkit-transform: rotate(120deg); transform: rotate(120deg);
}
.logo-menu svg.click .ac { display: none;
}
.logo-menu svg.click line { -webkit-animation: dash 0.4s linear forwards alternate; animation: dash 0.4s linear forwards alternate; -webkit-animation-delay: 0.15s; animation-delay: 0.15s;
}
line { stroke: #39CCC7; stroke-width: 4; stroke-linecap: round; stroke-miterlimit: 10; stroke-dasharray: 33; stroke-dashoffset: 50; -webkit-animation: undash 0.4s forwards linear; animation: undash 0.4s forwards linear;
}
/* HERO */
#hero { background:#fff; width:100%; height: 100vh; background-image: url(/assets/img/hero.png); background-size: contain; background-repeat: no-repeat; background-position: right;
}
#hero .container { padding:50px; height: 100vh;
}
#hero h4{ position: absolute; width: 100%; margin-top: 25vh;
}
#hero h1{ margin: 32vh 0px; width: 100%;
}
/* HERO END */
/* WORK */
#projects > section { height:100vh; width: 100%;
}
#projects section > .container { padding:50px; width:100%; height: 100%; position: relative;
}
.ui-info h4{ color:#fff;
}
.ui-info { width: 100%;
}
.ui-info span { width: 100%; display: flex; justify-content: space-between;
}
.ui-info h4:last-child{ text-align: right;
}
.project-details { position: absolute; bottom: 0px; padding-bottom:50px;
}
.project-details h1{ margin: 0; font-size: 40px; width: 60%; color:#fff; line-height: 45px; margin-bottom: 15px;
}
#projects > section:nth-child(1) { background: blue;
}
#projects > section:nth-child(2) { background: black;
}
#projects > section:nth-child(3) { background: #e67e22;
}
#projects > section:nth-child(4) { background: #e74c3c;
}
#projects > section:nth-child(5) { background: #2ecc71;
}
/*#projects section > .container + .dark div h4{ color:#fff;
}
*/
.full-line { width:100%; height: 2px; background: #fff; display: block;
}
ul.pagination { display: none; z-index:99999; position: fixed; right: 0px; margin:44vh 0;
}
ul.pagination a { text-decoration: none; width:12px; height: 18px; display:block;
}
ul.pagination a { cursor: pointer;
}
ul.pagination a li { width:12px; height: 2px; background: #3d3d3d; display:block; top: 8px; position: relative;
}
ul.pagination a:hover > li{ margin-left: -12px; width:24px; height: 4px; background: #fff;
}
/* WORK END */
@-webkit-keyframes dash { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 69; }
}
@keyframes dash { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 69; }
}
@-webkit-keyframes undash { from { stroke-dasharray: 100; stroke-dashoffset: 0; } to { stroke-dasharray: 100; stroke-dashoffset: 102; }
}
@keyframes undash { from { stroke-dasharray: 100; stroke-dashoffset: 0; } to { stroke-dasharray: 100; stroke-dashoffset: 102; }
}
@-webkit-keyframes shelf { 0% { padding-right: 0px; } 20% { padding-right: 20px; } 40% { padding-right: 10px; } 60% { padding-right: 15px; } 80% { padding-right: 5px; } 100% { padding-right: 0px; }
}
@keyframes shelf { 0% { padding-right: 0px; } 20% { padding-right: 20px; } 40% { padding-right: 10px; } 60% { padding-right: 15px; } 80% { padding-right: 5px; } 100% { padding-right: 0px; }
}
@media (max-width: 600px) { .nav { width: 100%; height: 80px; background: #fff; position: fixed; left: 0; border-right: 0 solid #f0f0f0; z-index: 9999; } .logo-menu { margin: 0; } .logo-menu svg { margin: 17px; } .menu-shelf { width: 100%; height: 100vh; margin-top: 80px; } .container { margin: 0px } .menu-shelf svg.logo { display: none; } footer { position: fixed; }
}

Menu Shelf - Script Codes JS Codes

// LOGO
var btn = document.querySelector('.logo-menu'), svg = document.querySelector('svg');
btn.addEventListener('click', function() { svg.classList.toggle('click');
}, false);
// MENU
function showMobileMenu() { var mobileVis = jQuery('.menu-shelf').css('display'); if (mobileVis == "none") { jQuery('.menu-shelf').animate({ width: 'toggle' }, 350); $('.navigation, .menu-bg').toggleClass("open-nav"); } else { jQuery('.menu-shelf').animate({ width: 'toggle' }, 350); $('.navigation, .menu-bg').toggleClass("open-nav"); }
};
jQuery('.logo-menu').click(function() { showMobileMenu(); return false;
});
// TABS
$(document).ready(function() { (function($) { $('.tab ul.tabs').addClass('active').find('> li:eq(0)').addClass('current'); $('.tab ul.tabs li a').click(function(g) { var tab = $(this).closest('.tab'), index = $(this).closest('li').index(); tab.find('ul.tabs > li').removeClass('current'); $(this).closest('li').addClass('current'); tab.find('.tab_content').find('div.tabs_item').not('div.tabs_item:eq(' + index + ')').slideUp().removeClass("active_tab_content"); tab.find('.tab_content').find('div.tabs_item:eq(' + index + ')').slideDown().addClass("active_tab_content"); g.preventDefault(); }); })(jQuery);
});
// SMOOTH SCROLL
$(function() { $('a[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html, body').animate({ scrollTop: target.offset().top }, 800); return false; } } });
});
// SCROLL TRIGGER
var element_position = $('#01').offset().top;
var screen_height = $(window).height();
var activation_offset = 0.5;//determines how far up the the page the element needs to be before triggering the function
var activation_point = element_position - (screen_height * activation_offset);
var max_scroll_height = $('body').height() - screen_height - 5;//-5 for a little bit of buffer
//Does something when user scrolls to it OR
//Does it when user has reached the bottom of the page and hasn't triggered the function yet
$(window).on('scroll', function() { var y_scroll_pos = window.pageYOffset; var element_in_view = y_scroll_pos > activation_point; var has_reached_bottom_of_page = max_scroll_height <= y_scroll_pos && !element_in_view; if(element_in_view || has_reached_bottom_of_page) { $('ul.pagination').animate({ width: 'toggle' }, 350); } else { $('ul.pagination').animate({ width: 'toggle' }, 350); }
});
Menu Shelf - Script Codes
Menu Shelf - Script Codes
Home Page Home
Developer Alex Coven
Username alcoven
Uploaded August 11, 2022
Rating 3.5
Size 7,738 Kb
Views 72,864
Do you need developer help for Menu Shelf?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Alex Coven (alcoven) Script Codes
Create amazing Facebook ads with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!