Scrollable Navigation

Developer
Size
3,141 Kb
Views
14,168

How do I make an scrollable navigation?

What is a scrollable navigation? How do you make a scrollable navigation? This script and codes were developed by Kenan Yusuf on 06 December 2022, Tuesday.

Scrollable Navigation Previews

Scrollable Navigation - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Scrollable Navigation</title> <link href='https://fonts.googleapis.com/css?family=Alegreya+Sans:400,700|Source+Sans+Pro:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> <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="device"> <div class="window"> <header class="header"> <h1 class="brand">Scrollable nav</h1> </header> <nav class="navigation"><a class="navigation__item" href="#">Home</a><a class="navigation__item" href="#">About</a><a class="navigation__item" href="#">Work</a><a class="navigation__item" href="#">Contact</a></nav> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Scrollable Navigation - Script Codes CSS Codes

* { box-sizing: border-box;
}
html,
body { height: 100%;
}
body { display: flex; align-items: center; justify-content: center; height: 100%; background: #4caf50; font-family: 'Source Sans Pro', sans-serif;
}
.device { padding-top: 35px; background: #2e7d32; border-radius: 15px; margin: 20px;
}
.window { position: relative; height: 450px; min-width: 300px; width: 100%; max-width: 600px; background: #e6e6e6; -webkit-overflow-scrolling: touch;
}
.header { display: flex; justify-content: center; align-items: center; height: 100px; background: #388e3c;
}
.brand { margin: 0; font-family: 'Alegreya Sans', sans-serif; font-size: 40px; font-weight: 700; color: #fff;
}
.navigation { display: flex; justify-content: space-between; align-items: center; width: 100%; list-style: none; padding: 0; margin: 0; overflow-x: auto; background: #fff; border-bottom: 2px solid #ccc;
}
.navigation__item { padding: 20px 30px; color: #7b7b7b; text-transform: uppercase; text-decoration: none; font-weight: 700;
}
.navigation__item:hover { color: #388e3c;
}

Scrollable Navigation - Script Codes JS Codes

$('.window').resizable({ handles: 'e'
})
Scrollable Navigation - Script Codes
Scrollable Navigation - Script Codes
Home Page Home
Developer Kenan Yusuf
Username KenanYusuf
Uploaded December 06, 2022
Rating 3.5
Size 3,141 Kb
Views 14,168
Do you need developer help for Scrollable 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!

Kenan Yusuf (KenanYusuf) Script Codes
Create amazing sales emails 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!