Parallax navigation

Size
2,505 Kb
Views
2,024

How do I make an parallax navigation?

A parallax background with a slick bouncy navigation, what more could you ask for?. What is a parallax navigation? How do you make a parallax navigation? This script and codes were developed by Collin Chappell on 03 February 2023, Friday.

Parallax navigation Previews

Parallax navigation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Parallax navigation</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <link href="style.css" rel="stylesheet" type="text/css">
<div class="wrap"></div>
<div class="nav"> <ul> <li><a>Home</a></li> <li class="dropdown"> <a>Our Work</a> <ul class="dropdownlinks"> <li><a>Work One</a></li> <br> <li><a>Work Two</a></li> <li><a class="divider"></a></li> <br> <li><a>Work Three</a></li> <li><a class="divider"></a></li> <li><a>Other Works</a></li> </ul> </li> <li><a>About Us</a></li> <li class="dropdown"> <a>Shop</a> <ul class="dropdownlinks"> <li><a>Category One</a></li> <li><a>Category Two</a></li> <li><a>Category Three</a></li> <li><a class="divider"></a></li> <li><a>Terms and Conditions</a></li> <li><a class="divider"></a></li> <li><a>Category Four</a></li> <li><a>Category Five</a></li> </ul> </li> <li><a>Contact</a></li> </ul>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Parallax navigation - Script Codes CSS Codes

.wrap { background: #fff url(http://www.oksancia.com/wp-content/uploads/2010/12/wild_animals_seamless_pattern_oksancia_web_preview.jpg) repeat 0 0; left: 0; position: absolute; top: 0; width: 100%; height: 100%;	z-index: 0;
}
.nav { position: absolute; top: 0; left: 0; width: 100%; height: 64px; background: #fff; border-bottom: 1px solid #bbb; box-shadow: 0px 3px 4px 0px rgba(0,0,0,0.2); z-index: 9998 !important;
}
.nav ul {
}
.nav ul li { position: relative; display: inline-block; margin-top: 5px;
}
.nav ul li a { font-size: 22px; font-family: sans-serif; font-weight : 100; padding: 18px 8px; transition: all 0.3s; cursor: pointer;
}
.nav ul li a:hover { color: deepskyblue;
}
.nav ul li ul { position: absolute; z-index: 9999 !important; border: 1px solid #bbb; border-bottom: 2px solid #bbb; border-top: none; opacity: 0; transition: all 0.3s cubic-bezier(.4,1.53,.22,1.14); top: 40px; height: auto; width: 256px; max-width: 256px; background: #fff; border-radius: 5px; overflow: hidden; padding: 6px 4px; box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.2); visibility: hidden; -webkit-transform: scale(0.4);
}
.nav ul li:hover ul { opacity: 1; visibility: visible; -webkit-transform: scale(1);
}
.nav ul li ul li a { padding: 4px 4px; display: block;
}
.divider { height: 2px; padding: 0px 0px !important; width: 256px; background: #ccc;
}

Parallax navigation - Script Codes JS Codes

$('.wrap').mousemove(function(e) { var x = (e.pageX * -1 / 5), y = (e.pageY * -1 / 5); $(this).css('background-position', x + 'px ' + y + 'px');
});
Parallax navigation - Script Codes
Parallax navigation - Script Codes
Home Page Home
Developer Collin Chappell
Username Keubix
Uploaded February 03, 2023
Rating 3
Size 2,505 Kb
Views 2,024
Do you need developer help for Parallax navigation?

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!

Collin Chappell (Keubix) Script Codes
Create amazing captions 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!