Burger with Label

Developer
Size
3,346 Kb
Views
10,120

How do I make an burger with label?

Following on from pens by CreativeJuiz and Loredonut. What is a burger with label? How do you make a burger with label? This script and codes were developed by Adam Orchard on 02 December 2022, Friday.

Burger with Label Previews

Burger with Label - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Burger with Label</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ .burger,
.burger:hover,
.burger:active,
.burger:visited { text-decoration: none; color: #515152;
}
body { background: #515152;
}
header { background: #c3c3c3; padding: 6px;
}
.burger { margin: 6px; display: inline-block;
}
.burger .burger-label { line-height: 30px; font-size: 30px; display: inline-block; vertical-align: top; margin-left: 12px;
}
.burger .burger-icon { display: inline-block; width: 36px; height: 30px;
}
.burger .burger-icon span,
.burger .burger-icon span:before,
.burger .burger-icon span:after { display: block; width: 100%; height: 6px; background: #515152; transition: all 0.5s; backface-visibility: hidden;
}
.burger .burger-icon span { position: relative; margin: 12px 0 0;
}
.burger .burger-icon span:before,
.burger .burger-icon span:after { position: absolute; content: "";
}
.burger .burger-icon span:before { top: -12px;
}
.burger .burger-icon span:after { top: 12px;
}
.burger:hover .burger-icon span:before { transform: translate(0px, -4px);
}
.burger:hover .burger-icon span:after { transform: translate(0px, 4px);
}
.burger.selected .burger-icon span:before { transform: translate(0px, 12px) rotate(-45deg);
}
.burger.selected .burger-icon span:after { transform: translate(0px, -12px) rotate(45deg);
}
.burger.selected .burger-icon span { background: transparent;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <header> <a class="burger" href="#"> <div class="burger-icon"> <span></span> </div> <span class="burger-label">Menu</span> </a>
</header>
<!--
Following on from https://codepen.io/CreativeJuiz/pen/oCBxz and https://codepen.io/loredonut/pen/hjuai
--> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Burger with Label - Script Codes CSS Codes

.burger,
.burger:hover,
.burger:active,
.burger:visited { text-decoration: none; color: #515152;
}
body { background: #515152;
}
header { background: #c3c3c3; padding: 6px;
}
.burger { margin: 6px; display: inline-block;
}
.burger .burger-label { line-height: 30px; font-size: 30px; display: inline-block; vertical-align: top; margin-left: 12px;
}
.burger .burger-icon { display: inline-block; width: 36px; height: 30px;
}
.burger .burger-icon span,
.burger .burger-icon span:before,
.burger .burger-icon span:after { display: block; width: 100%; height: 6px; background: #515152; transition: all 0.5s; backface-visibility: hidden;
}
.burger .burger-icon span { position: relative; margin: 12px 0 0;
}
.burger .burger-icon span:before,
.burger .burger-icon span:after { position: absolute; content: "";
}
.burger .burger-icon span:before { top: -12px;
}
.burger .burger-icon span:after { top: 12px;
}
.burger:hover .burger-icon span:before { transform: translate(0px, -4px);
}
.burger:hover .burger-icon span:after { transform: translate(0px, 4px);
}
.burger.selected .burger-icon span:before { transform: translate(0px, 12px) rotate(-45deg);
}
.burger.selected .burger-icon span:after { transform: translate(0px, -12px) rotate(45deg);
}
.burger.selected .burger-icon span { background: transparent;
}

Burger with Label - Script Codes JS Codes

$("a.burger").click(function(){ $(this).toggleClass("selected");
});
Burger with Label - Script Codes
Burger with Label - Script Codes
Home Page Home
Developer Adam Orchard
Username orchard
Uploaded December 02, 2022
Rating 3
Size 3,346 Kb
Views 10,120
Do you need developer help for Burger with Label?

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!

Adam Orchard (orchard) Script Codes
Create amazing web content 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!