Nav animation exercise - START

Developer
Size
3,402 Kb
Views
48,576

How do I make an nav animation exercise - start?

What is a nav animation exercise - start? How do you make a nav animation exercise - start? This script and codes were developed by Val Head on 07 August 2022, Sunday.

Nav animation exercise - START Previews

Nav animation exercise - START - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Nav animation exercise - START</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="wrap"> <div class="navlist"> <svg id="hamb" class="hamb" viewBox="0 0 32.17 23.83" width="30"> <path id="line1" class="line" d="M31.17,2H1A1,1,0,0,1,1,0H31.17A1,1,0,0,1,31.17,2Z"/> <path id="line2" class="line" d="M31.17,12.92H1a1,1,0,0,1,0-2H31.17A1,1,0,0,1,31.17,12.92Z"/> <path id="line3" class="line" d="M31.17,23.83H1a1,1,0,0,1,0-2H31.17A1,1,0,0,1,31.17,23.83Z"/> </svg> </div> <div class="imghold"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/13034/sleepy_stock_cat.jpg" alt="" /> </div> <div class="panel"> <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/13034/close_icon.svg" class="close" alt="" /> <div class="panellist"> <ul> <li>Shop Our Store</li> <li>The News</li> <li>About</li> <li>Contact</li> <li>My Account</li> <li>My Wishlist</li> </ul> </div> </div> <script src="js/index.js"></script>
</body>
</html>

Nav animation exercise - START - Script Codes CSS Codes

@import "https://fonts.googleapis.com/css?family=Kreon:300";
/* ------- */
/* ------- */
.panel { -webkit-transition: all 1s; transition: all 1s; -webkit-transform: translateX(-100%); transform: translateX(-100%);
}
.panel .panellist li { -webkit-transform: translateX(-5%); transform: translateX(-5%); opacity: 0;
}
.panel.active { -webkit-transform: translateX(-10px); transform: translateX(-10px);
}
.panel.active .panellist li { opacity: 1; -webkit-transform: translateX(0); transform: translateX(0);
}
body { background: #333;
}
.wrap { width: 768px; height: 1024px; margin: 0 auto; overflow: hidden; position: relative; font-weight: 300; font-style: normal; font-family: 'Kreon', serif;
}
.navlist { height: 24px; position: absolute; left: 25px; top: 40px;
}
.panel { width: 300px; height: 1024px; background-color: #252525; position: absolute; bottom: 0; left: 0; z-index: 10;
}
.panel img.close { width: 24px; height: auto; position: absolute; top: 40px; left: 40px;
}
.panel img.close:hover { cursor: pointer;
}
.imghold { background: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/13034/sleepy_stock_cat.jpg") -300px 0; background-size: cover; width: 768px; height: 1024px;
}
.panellist { color: white; font-size: 24px; font-weight: normal; padding: 20vh 0 0 10%;
}
ul { list-style: none; margin: 1em 0;
}
ul li { line-height: 1.8;
}
.hamb { fill: #fff;
}
.hamb:hover { cursor: pointer;
}

Nav animation exercise - START - Script Codes JS Codes

var hamb = document.querySelector('.hamb'), close = document.querySelector('.close'), panel = document.querySelector('.panel');
close.onclick = toggleIn;
hamb.onclick = toggleIn;
function toggleIn() { panel.classList.toggle('active');
}
Nav animation exercise - START - Script Codes
Nav animation exercise - START - Script Codes
Home Page Home
Developer Val Head
Username valhead
Uploaded August 07, 2022
Rating 3
Size 3,402 Kb
Views 48,576
Do you need developer help for Nav animation exercise - START?

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!

Val Head (valhead) Script Codes
Create amazing art & images 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!