Fixed menu on top when scroll
How do I make an fixed menu on top when scroll?
What is a fixed menu on top when scroll? How do you make a fixed menu on top when scroll? This script and codes were developed by Alexander Nastase on 21 August 2022, Sunday.
Fixed menu on top when scroll - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Fixed menu on top when scroll</title>
</head>
<body> <script src="js/index.js"></script>
</body>
</html>
Fixed menu on top when scroll - Script Codes JS Codes
var msie6 = $.browser == 'msie' && $.browser.version < 7;
if (!msie6) { var top = $('.headcontent').offset().top - parseFloat($('.headcontent').css('margin-top').replace(/auto/, 0)); $(window).scroll(function (event) { // what the y position of the scroll is var y = $(this).scrollTop(); // whether that's below the form if (y >= top) { // if so, ad the fixed class $('aside').addClass('fixed'); } else { // otherwise remove it $('aside').removeClass('fixed'); } });
}
Developer | Alexander Nastase |
Username | anodpixels |
Uploaded | August 21, 2022 |
Rating | 3 |
Size | 1,599 Kb |
Views | 32,384 |
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!
Name | Size |
Target effects | 1,855 Kb |
Scrollbar Scrolling Progress Annotation | 2,265 Kb |
Accordion - Menu | 2,356 Kb |
Target effect | 2,163 Kb |
CSS spinning loader | 2,244 Kb |
Pressable CSS Buttons | 4,863 Kb |
Carousel_listing | 45,147 Kb |
Right Click Menu | 2,252 Kb |
Old Browser Warning | 2,198 Kb |
Tryout_slider_done | 2,104 Kb |
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!
Name | Username | Size |
Slick Slider | Wearebold | 5,913 Kb |
Hmmm... | Rk007 | 4,848 Kb |
Underlined form fields | Mitchdot | 2,323 Kb |
Calculator - codevember 08 - 2016 | Caiocares | 3,260 Kb |
Lecture 1 | Law | 0 Kb |
Personal Website Redesign v2.0 | DevItWithDavid | 5,168 Kb |
Octopus Bar iPad App Interactions | Davidkpiano | 6,735 Kb |
Promodoro | Bencarp | 1,712 Kb |
SlideupBoxes | Gavra | 23,772 Kb |
Process Accordion | Devilskitchen | 31,432 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!