Ribbon Menu

Size
3,773 Kb
Views
42,504

How do I make an ribbon menu?

What is a ribbon menu? How do you make a ribbon menu? This script and codes were developed by Mojtaba Seyedi on 27 July 2022, Wednesday.

Ribbon Menu Previews

Ribbon Menu - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title> Ribbon Menu</title> <link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.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! */ * { padding : 0; margin : 0; border : 0;
}
body { background-color : #3d332a; background-image : url('http://mojoimage.com/free-image-hosting-12/9690bg.jpg'); padding-top : 50px;
}
nav { width : 456px; margin: auto; position : relative;
}
menu:after , menu:before { top : 0; width : 60px; height : 76px; background: #eae2d5; display : block; content : ""; position: absolute;
}
menu:after { clear : both; right : -61px; border-right : 1px solid #857e74;
}
menu:before { left : -55px; border-left : 1px solid #857e74;
}
.ribbon { position : absolute; top : 76px; border-style : solid ; border-width : 13px;
}
.ribbon.left { left : -55px; border-color : #857e74 #857e74 transparent transparent;
}
.ribbon.right { left : 491px; border-color : #857e74 transparent transparent #857e74;
}
.left:after , .left:before { display : block; content : ""; position: absolute; left : -68px; border-style : solid; z-index : -2;
}
.left:after { top : -68px; border-width : 58px 0 0 56px; border-color : #eae2d5 transparent transparent transparent;
}
.left:before { top : -26px; border-width : 0 40px 38px 41px; border-color : transparent transparent #eae2d5 transparent;
}
.right:after , .right:before { display : block; content : ""; position: absolute; right : -65px; border-style : solid; z-index : -2;
}
.right:before { top : -25px; border-width : 0 40px 38px 38px; border-color : transparent transparent #eae2d5 transparent;
}
.right:after { top : -65px; border-width : 58px 56px 0 0; border-color : #eae2d5 transparent transparent transparent;
}
li { float : left; position : relative; margin-left : 33px; cursor : pointer; background-color : #eae2d5; list-style-type : none; border-left : 2px solid #d7cfc2; border-right : 2px solid #d7cfc2; transition : margin .1s ,padding .1s ,border 1s;
}
li:first-child { margin-left : 20px;
}
li:before , li:after { content : ""; display : block; position : absolute; top : 0; width : 20px; height : 100%; background : inherit; transition : all .1s;
}
li:before { right : 100%;
}
li:after { left : 100%;
}
li:hover { margin-top : -9px; box-shadow : 0 4px 10px 0px #000; transition : margin .2s ,padding .2s;
}
li:hover:before , li:hover:after { height : 86%; background : #d7cfc2; transition : all .2s;
}
li:hover:before { transform : rotate(-30deg) skew(-30deg) translate(1.5px,9px);
}
li:hover:after { transform : rotate(30deg) skew(30deg) translate(-1.5px,9px);
}
a { display : block; padding : 10.5px 15px; text-decoration : none; text-align : center
}
a span { text-shadow : 1px 1px 1px #FFF; color : #857e74; transition : all .2s;
}
a span:first-child { font-size : 33px; display : block; margin-bottom: 4px;;
}
a span:last-child { text-transform : capitalize; font-family : 'Georgia'; font-size : 11px; letter-spacing : 1px; font-style : italic; color : #6488ba;
}
li:hover span { transition : all .2s;
}
li:hover a span:first-child { color : #6488ba; text-shadow : 1px 1px 1px #FFF , 0 0 1px #6488ba;
}
li:hover a span:last-child { color : #857e74;
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <nav> <menu> <li> <a href="#"> <span class="fa fa-twitter"></span> <span>twitter</span> </a> </li> <li id="at"> <a href="#"> <span class="fa fa-github"></span> <span>github</span> </a> </li> <li> <a href="#"> <span class="fa fa-facebook"></span> <span>facebook</span> </a> </li> <li> <a href="#"> <span class="fa fa-google-plus"></span> <span>google+</span> </a> </li> </menu> <div class="ribbon left"></div> <div class="ribbon right"></div>
</nav> <script src="js/index.js"></script>
</body>
</html>

Ribbon Menu - Script Codes CSS Codes

* { padding : 0; margin : 0; border : 0;
}
body { background-color : #3d332a; background-image : url('http://mojoimage.com/free-image-hosting-12/9690bg.jpg'); padding-top : 50px;
}
nav { width : 456px; margin: auto; position : relative;
}
menu:after , menu:before { top : 0; width : 60px; height : 76px; background: #eae2d5; display : block; content : ""; position: absolute;
}
menu:after { clear : both; right : -61px; border-right : 1px solid #857e74;
}
menu:before { left : -55px; border-left : 1px solid #857e74;
}
.ribbon { position : absolute; top : 76px; border-style : solid ; border-width : 13px;
}
.ribbon.left { left : -55px; border-color : #857e74 #857e74 transparent transparent;
}
.ribbon.right { left : 491px; border-color : #857e74 transparent transparent #857e74;
}
.left:after , .left:before { display : block; content : ""; position: absolute; left : -68px; border-style : solid; z-index : -2;
}
.left:after { top : -68px; border-width : 58px 0 0 56px; border-color : #eae2d5 transparent transparent transparent;
}
.left:before { top : -26px; border-width : 0 40px 38px 41px; border-color : transparent transparent #eae2d5 transparent;
}
.right:after , .right:before { display : block; content : ""; position: absolute; right : -65px; border-style : solid; z-index : -2;
}
.right:before { top : -25px; border-width : 0 40px 38px 38px; border-color : transparent transparent #eae2d5 transparent;
}
.right:after { top : -65px; border-width : 58px 56px 0 0; border-color : #eae2d5 transparent transparent transparent;
}
li { float : left; position : relative; margin-left : 33px; cursor : pointer; background-color : #eae2d5; list-style-type : none; border-left : 2px solid #d7cfc2; border-right : 2px solid #d7cfc2; transition : margin .1s ,padding .1s ,border 1s;
}
li:first-child { margin-left : 20px;
}
li:before , li:after { content : ""; display : block; position : absolute; top : 0; width : 20px; height : 100%; background : inherit; transition : all .1s;
}
li:before { right : 100%;
}
li:after { left : 100%;
}
li:hover { margin-top : -9px; box-shadow : 0 4px 10px 0px #000; transition : margin .2s ,padding .2s;
}
li:hover:before , li:hover:after { height : 86%; background : #d7cfc2; transition : all .2s;
}
li:hover:before { transform : rotate(-30deg) skew(-30deg) translate(1.5px,9px);
}
li:hover:after { transform : rotate(30deg) skew(30deg) translate(-1.5px,9px);
}
a { display : block; padding : 10.5px 15px; text-decoration : none; text-align : center
}
a span { text-shadow : 1px 1px 1px #FFF; color : #857e74; transition : all .2s;
}
a span:first-child { font-size : 33px; display : block; margin-bottom: 4px;;
}
a span:last-child { text-transform : capitalize; font-family : 'Georgia'; font-size : 11px; letter-spacing : 1px; font-style : italic; color : #6488ba;
}
li:hover span { transition : all .2s;
}
li:hover a span:first-child { color : #6488ba; text-shadow : 1px 1px 1px #FFF , 0 0 1px #6488ba;
}
li:hover a span:last-child { color : #857e74;
}

Ribbon Menu - Script Codes JS Codes

// inspired by http://drbl.in/gorN
Ribbon Menu - Script Codes
Ribbon Menu - Script Codes
Home Page Home
Developer Mojtaba Seyedi
Username seyedi
Uploaded July 27, 2022
Rating 4
Size 3,773 Kb
Views 42,504
Do you need developer help for Ribbon Menu?

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!

Mojtaba Seyedi (seyedi) Script Codes
Name
Flat Navigation
Covering Bad
Flock Login
Button
Switching
Animated Covers
Menu
Navigation
Single element cloud
Bell alert
Create amazing marketing copy 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!