<head>
<meta charset = "UTF-8">
<link rel="icon" type="image/png" sizes="16x16" href="favicon.png">
<title>Hybrid UI</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js" integrity="sha512-aVKKRRi/Q/YV+4mjoKBsE4x3H+BkegoM/em46NNlCqNTmUYADjBbeNefNxYV7giUp0VxICtqdrbqU7iVaeZNXA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Righteous&display=swap" rel="stylesheet">
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />
</head>
<body>
<div class="header">
<div id="header-sroll"><h1>Hybrid UI</h1></div>
</div>
<div class="headerbar">
<div class="progress-container">
<div class="progress-bar" id="progressBar"></div>
</div>
</div>
<!-- Content -->
<main class="main" id="main">
<div class="main-content responsive-wrapper">
<article class="widget">
<h2>Why use Hybrid UI?</h2>
<lottie-player src="https://assets3.lottiefiles.com/packages/lf20_pzvpyj0f.json" background="transparent" speed="1" style="width: 300px; height: 300px;" loop autoplay></lottie-player>
<p>The concept of hybrid UI is that the same UI is persistent in both the desktop version <strong>and the smaller screens.</strong> To start with, most websites that we see nowadays have a responsive header that has a hidden menu only for devices with relatively lower screen dimensions.
<p>This approach requires setting up <code>multiple media queries</code> for better responsiveness across <strong> mobile browsers.</strong> But we don't see these <strong>headers in mobile apps.</strong> And <strong>Why is that? </strong> Because mobile app headers usually have a top or bottom <code>navigation menu</code> which is better in terms of appearance and UI. What we overlook is that desktop screens can also have a top or bottom navigation menu and still look <strong>absolutely standard.</strong>
<!--Bordered Pagination-->
<div class="b-pagination-outer">
<ul id="border-pagination">
<li><a class="nav-link" href="index.html">1</a></li>
<li><a class="nav-link" href="#">2</a></li>
<li><a class="nav-link" href="#">3</a></li>
<li><a class="nav-link" href="#">4</a></li>
</ul>
</div>
<a href="#" class="previous">_Previous</a>
<a href="#" class="next">Next_</a>
<div style="clear: both;"></div>
</article>
</div>
</main>
<nav class="circle_nav ">
<a href="#" class="hamburger"><i class="fa fa-bars"></i></a>
<ul class="menu">
<li data-submenu="home"><a href="#"><i class="fa fa-home"></i></a></li>
<li><a href="#"><i class="fa fa-database"></i></a></li>
<li><a href="#"><i class="fa fa-desktop"></i></a></li>
<li><a href="#"><i class="fa fa-cubes"></i></a></li>
<li><a href="#"><i class="fa fa-envelope"></i></a></li>
</ul>
</nav>
<footer class="">
<a href="#" style = "color: cyan; border:2px solid #fff;"><i class="fa fa-laptop" aria-hidden="true"></i></a>
<a href="#"><i class="fa fa-camera-retro" aria-hidden="true"></i></a>
<a href="#"><i class="fa fa-pen-nib" aria-hidden="true"></i></a>
<a href="#"><i class="fa fa-bar-chart" aria-hidden="true"></i></a>
</footer>
</body>
*,
*:after,
*:before {
box-sizing: border-box;
}
html, body{ height:100%; margin:0; padding: 0; color: #000; font-family: "DM Sans", sans-serif; }
body {
background-color: #004962FE;
margin-top: 80px;
line-height: 1.5;
position: relative;
}
#header-sroll {
position:fixed;
height: 70px;
background:rgba(12, 76, 122, 0.8);
left:0;
top:0;
float:left;
width:100%;
-ms-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-webkit-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
}
#header-sroll h1 {
font-size: 25px;
text-decoration: underline;
text-decoration-color: #fff;
font-family: 'Righteous', cursive;
padding-left: 25px;
line-height: 35px;
color: #fff;
-ms-transition: all 0.3s ease-out;
-moz-transition: all 0.3s ease-out;
-webkit-transition: all 0.3s ease-out;
-o-transition: all 0.3s ease-out;
transition: all 0.3s ease-out;
}
.headerbar {
position: fixed;
top: 0;
width: 100%;
z-index: 1;
}
.progress-container {
background-color: rgba(150, 150, 150, 0.6);
height: 10px;
width: 100%;
}
.progress-bar {
height: 10px;
width: 0%;
background: linear-gradient(to top, #008aff, #00ffe7);
animation: animate 5s linear infinite;
}
@keyframes animate {
0%, 100% {
filter: hue-rotate(0);
}
50% {
filter: hue-rotate(120deg);
}
}
#progressBar::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, #008aff, #00ffe7);
filter: blur(10px);
}
#progressBar::after {
content: '';
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
background: linear-gradient(to top, #008aff, #00ffe7);
filter: blur(30px);
}
.previous {
background-color: #3A10E5;;
color: white;
border-radius: 6px;
padding: 8px 16px;
text-decoration: none;
display: inline-block;
}
.next {
background-color: #3A10E5;;
color: white;
border-radius: 6px;
padding: 8px 16px;
text-decoration: none;
float: right;
}
footer{
position: fixed;
bottom: 0;
right: 0;
left: 0;
text-align: center;
display: flex;
justify-content: space-around;
font-size: 24px;
background: rgba(12, 76, 122, 0.8);
padding: 20px;
color: #ffffff;
z-index: 1;
}
footer > a{
position: relative;
z-index: 50;
cursor: pointer;
color: #fff;
border-radius: 50%;
width: 50px;
height: 50px;
line-height: 50px;
transition: all 0.5s ease;
}
footer > a:hover{
transition: all 0.5s ease;
color: #1b689c;
box-shadow: 0px 0px 8px #1f6fa5;
}
.fa-navicon{
position: absolute;
background: #00b4ff;
padding: 10px;
border-radius: 50%;
width: 50px;
height: 50px;
line-height: 50px;
color: #fff;
top: -35px;
}
.nav-open {
position: absolute;
width: 200px;
background: #ccc;
border-radius: 100%;
left: 0;
right: 0;
margin: auto;
bottom: 0;
}
.circle_nav {
position: fixed;
bottom: 60px;
right: 0;
left: 0;
display: block;
width: 26em;
height: 26em;
font: 500 14px/14px arial normal;
margin: auto;
z-index: 10;
overflow:hidden;
}
.circle_nav .hamburger {
position: absolute;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
width: 60px;
height: 60px;
border-radius: 100%;
background: #004962FE;
color: white;
text-align: center;
box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.44);
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
margin: auto;
line-height: 70px;
margin-bottom: 6px;
}
.circle_nav .hamburger i { font-size: 22px; }
.circle_nav .hamburger:active,
.circle_nav .hamburger:hover {
box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.44);
background: #004962FE;
}
.circle_nav a {
color: white;
text-decoration: none;
}
.circle_nav.active .hamburger {
box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.44);
background: #004962FE;
}
.circle_nav.active .menu {
pointer-events: auto;
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
}
.menu{
position: absolute;
top: 50%;
right: 8%;
z-index: 0;
width: 300px;
height: 300px;
-webkit-transform: scale(0.1);
-ms-transform: scale(0.1);
-moz-transform: scale(0.1);
transform: scale(0.1);
pointer-events: none;
-webkit-transition: all .15s ease;
-moz-transition: all .15s ease;
transition: all .15s ease;
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box;
box-sizing: content-box;
}
.menu > li:nth-of-type(1){
-moz-transform: rotate(0deg) skew(50deg);
-ms-transform: rotate(0deg) skew(50deg);
-webkit-transform: rotate(0deg) skew(50deg);
transform: rotate(0deg) skew(50deg);
}
.menu > li:nth-of-type(2){
-moz-transform: rotate(35deg) skew(50deg);
-ms-transform: rotate(35deg) skew(50deg);
-webkit-transform: rotate(35deg) skew(50deg);
transform: rotate(35deg) skew(50deg);
}
.menu > li:nth-of-type(2) > a,
.menu > li:nth-of-type(4) > a{ background-color: #036080fe }
.menu > li:nth-of-type(3){
-moz-transform: rotate(70deg) skew(50deg);
-ms-transform: rotate(70deg) skew(50deg);
-webkit-transform: rotate(70deg) skew(50deg);
transform: rotate(70deg) skew(50deg);
}
.menu > li:nth-of-type(4){
-moz-transform: rotate(105deg) skew(50deg);
-ms-transform: rotate(105deg) skew(50deg);
-webkit-transform: rotate(105deg) skew(50deg);
transform: rotate(105deg) skew(50deg);
}
.menu > li:nth-of-type(5){
-moz-transform: rotate(140deg) skew(50deg);
-ms-transform: rotate(140deg) skew(50deg);
-webkit-transform: rotate(140deg) skew(50deg);
transform: rotate(140deg) skew(50deg);
}
.menu > li{
position: absolute;
bottom: 50%;
right: 50%;
font-size: 1.5em;
width: 10em;
height: 10em;
-webkit-transform-origin: 100% 100%;
-moz-transform-origin: 100% 100%;
-ms-transform-origin: 100% 100%;
transform-origin: 100% 100%;
overflow: hidden;
margin-top: -1.3em;
margin-left: -10em;
-webkit-transition: all .3s ease;
-moz-transition: all .3s ease;
transition: all 0.3s ease;
}
.menu > li a{
position: absolute;
bottom: -7.25em;
right: -7.25em;
display: block;
height: 14.5em;
width: 14.5em;
border-radius: 50%;
text-decoration: none;
color: #fff;
padding-top: 0em;
text-align: center;
font-size: 1.18em;
-webkit-transform: skew(-50deg) rotate(-70deg) scale(1);
-ms-transform: skew(-50deg) rotate(-70deg) scale(1);
-moz-transform: skew(-50deg) rotate(-70deg) scale(1);
transform: skew(-50deg) rotate(-70deg) scale(1);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transition: opacity 0.3s, color 0.3s;
-moz-transition: opacity 0.3s, color 0.3s;
transition: opacity 0.3s, color 0.3s;
background-color: #025c7afe;
}
.menu > li a i,
.submenu > li a i { padding: 20px 15px 0 0; }
.menu > li a:active,
.menu > li a:hover,
.submenu > li a:active,
.submenu > li a:hover { background-color: #4f9eb8fe; }
li, ul{
display: block;
margin:0;
padding: 0;
}
/* border-pagination */
.b-pagination-outer {
width: 100%;
margin: 0 auto;
text-align: center;
overflow: hidden;
display: flex
}
#border-pagination {
margin: 0 auto;
padding: 0;
text-align: center
}
#border-pagination li {
display: inline;
}
#border-pagination li a {
display: block;
text-decoration: none;
color: #000;
padding: 5px 10px;
border: 1px solid #ddd;
float: left;
}
#border-pagination li a {
-webkit-transition: background-color 0.4s;
transition: background-color 0.4s
}
.nav-link.active {
background-color: #F50870FF;
color: #fff;
}
#border-pagination li a:hover:not(.active) {
background: #ddd;
}
.responsive-wrapper {
width: 90%;
max-width: 1280px;
margin-left: auto;
margin-right: auto;
}
.main {
margin-top: 3rem;
padding-bottom: 350px;
}
.widget {
width: 100%;
max-width: 600px;
border-radius: 8px;
box-shadow: 0 15px 30px 0 rgba(0,0,0, 0.1);
background-color: #fff;
padding: 2.5rem;
margin-left: auto;
margin-right: auto;
margin-bottom: 2rem;
font-size: 1.125rem;
}
.widget > * + * {
margin-top: 1.25em;
}
.widget h2 {
font-size: 1.5rem;
font-weight: 700;
line-height: 1.25;
}
.widget code {
display: inline-block;
padding: 0.125em 0.25em;
border-radius: 2px;
background-color: #bee5d3;
}
.widget strong {
font-weight: 700;
}
//footer
$('.hamburger').on('click', function(){
$(this).parent().toggleClass('active');
});
//page scroll
function progressBarScroll() {
let winScroll = document.body.scrollTop || document.documentElement.scrollTop,
height = document.documentElement.scrollHeight - document.documentElement.clientHeight,
scrolled = (winScroll / height) * 100;
document.getElementById("progressBar").style.width = scrolled + "%";
}
window.onscroll = function () {
progressBarScroll();
};
//set active page in pagination
$(function(){
//get current window url
var current = location.pathname;
//for each nav-link href attribute check if
$('.nav-link').each(function(){
var $this = $(this);
// if the current path is this href, make it active and break out of for each loop
if($this.attr('href') === current.split("/").pop() || $this.attr('href') === window.location.href || window.location.href === "https://codepen.io/mazidulfarabi/pen/xxjmvEz"){
$this.addClass('active');
return false;
}
})
})
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.