CSS3 Explode Menu

Size
4,668 Kb
Views
22,264

How do I make an css3 explode menu?

What is a css3 explode menu? How do you make a css3 explode menu? This script and codes were developed by Moreno Di Domenico on 22 September 2022, Thursday.

CSS3 Explode Menu Previews

CSS3 Explode Menu - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CSS3 Explode Menu</title> <link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/weather-icons/1.3.2/css/weather-icons.min.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>
<!-- Hello, -->
<!-- I made this little experiment just for fun. -->
<!-- I'm looking for a Web Developer position in London. If you are interested please contact me [moreno at themesholic.com]-->
<header> <h1>CSS3 Explode Menu</h1> <h3>By <a href="https://codepen.io/MorenoDiDomenico/" target="_blank">Moreno Di Domenico</a></h3>
</header>
<div id="stage"> <div id="circle-menu"><a class="menu-trigger" href="#" data-open="OPEN" data-close="CLOSE"></a> <ul> <li><a href="#"> <i class="wi wi-cloudy-gusts"></i></a></li> <li><a href="#"> <i class="wi wi-rain-mix"></i></a></li> <li><a href="#"> <i class="wi wi-day-sleet"></i></a></li> <li><a href="#"> <i class="wi wi-thunderstorm"></i></a></li> </ul> </div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

CSS3 Explode Menu - Script Codes CSS Codes

body { background: #141719; font-family: 'Montserrat', sans-serif; -webkit-font-smoothing: antialiased; -moz-font-smoothing: antialiased; font-smoothing: antialiased;
}
header { text-align: center; padding: 120px 0; background: #fff;
}
header h1 { margin: 0 0 15px 0; padding: 0; font-size: 42px; font-weight: normal;
}
header h3 { margin: 0; padding: 0; text-transform: uppercase; font-size: 14px; font-weight: bold; color: #999;
}
header h3 a { color: #09c; text-decoration: none;
}
header h3 a:hover { color: #09c; text-decoration: underline;
}
#stage { position: relative; height: 500px;
}
#circle-menu { display: inline-block; width: 100px; height: 100px; position: absolute; top: 50%; left: 50%; -webkit-transform: translateX(-50%) translateY(-50%); transform: translateX(-50%) translateY(-50%);
}
#circle-menu .menu-trigger { width: 100%; height: 100%; position: absolute; top: 0; left: 0; background: #e74c3c; color: #fff; display: inline-block; line-height: 100px; text-align: center; z-index: 9; text-decoration: none; font-size: .85rem; font-weight: bold; border: 3px solid transparent; -webkit-border-radius: 50%; -webkit-background-clip: padding-box; -moz-border-radius: 50%; -moz-background-clip: padding; border-radius: 50%; background-clip: padding-box; -webkit-transition: all 0.2s ease; transition: all 0.2s ease;
}
#circle-menu .menu-trigger:before,
#circle-menu .menu-trigger:after { position: absolute; left: 0; width: 100%; -webkit-transition: all 0.2s ease; transition: all 0.2s ease;
}
#circle-menu .menu-trigger:before { content: attr(data-open);
}
#circle-menu .menu-trigger:after { content: attr(data-close); zoom: 1; filter: alpha(opacity=0); -webkit-opacity: 0; -moz-opacity: 0; opacity: 0; -webkit-transform: translateY(15%); transform: translateY(15%);
}
#circle-menu ul { margin: 0; padding: 0; list-style: none;
}
#circle-menu ul li { position: absolute; width: 100px; height: 100px; display: inline-block; -webkit-border-radius: 50%; -webkit-background-clip: padding-box; -moz-border-radius: 50%; -moz-background-clip: padding; border-radius: 50%; background-clip: padding-box; zoom: 1; filter: alpha(opacity=0); -webkit-opacity: 0; -moz-opacity: 0; opacity: 0; -webkit-transition: all 0.85s cubic-bezier(0, 1.8, 1, 1.2); transition: all 0.85s cubic-bezier(0, 1.8, 1, 1.2);
}
#circle-menu ul li:nth-child(1) { background-color: #1abc9c;
}
#circle-menu ul li:nth-child(2) { background-color: #3498db;
}
#circle-menu ul li:nth-child(3) { background-color: #e67e22;
}
#circle-menu ul li:nth-child(4) { background-color: #8e44ad;
}
#circle-menu ul li a { color: #fff; font-size: 1.5rem; line-height: 100px; display: block; text-align: center;
}
#circle-menu.open .menu-trigger { background: transparent; border-color: #e74c3c;
}
#circle-menu.open .menu-trigger:before { zoom: 1; filter: alpha(opacity=0); -webkit-opacity: 0; -moz-opacity: 0; opacity: 0; -webkit-transform: translateY(-15%); transform: translateY(-15%);
}
#circle-menu.open .menu-trigger:after { zoom: 1; filter: alpha(opacity=100); -webkit-opacity: 1; -moz-opacity: 1; opacity: 1; -webkit-transform: translateY(0px); transform: translateY(0px);
}
#circle-menu.open ul li { zoom: 1; filter: alpha(opacity=100); -webkit-opacity: 1; -moz-opacity: 1; opacity: 1;
}
#circle-menu.open ul li:nth-child(1) { -webkit-transform: translateY(-120px); transform: translateY(-120px);
}
#circle-menu.open ul li:nth-child(2) { -webkit-transform: translateX(120px); transform: translateX(120px);
}
#circle-menu.open ul li:nth-child(3) { -webkit-transform: translateY(120px); transform: translateY(120px);
}
#circle-menu.open ul li:nth-child(4) { -webkit-transform: translateX(-120px); transform: translateX(-120px);
}
#circle-menu.open ul li:hover:nth-child(1) { background-color: #28e1bd;
}
#circle-menu.open ul li:hover:nth-child(2) { background-color: #5faee3;
}
#circle-menu.open ul li:hover:nth-child(3) { background-color: #eb9950;
}
#circle-menu.open ul li:hover:nth-child(4) { background-color: #a563c1;
}

CSS3 Explode Menu - Script Codes JS Codes

(function() { $('.menu-trigger').on('click', function(e) { e.preventDefault(); return $('#circle-menu').toggleClass('open'); });
}).call(this);
CSS3 Explode Menu - Script Codes
CSS3 Explode Menu - Script Codes
Home Page Home
Developer Moreno Di Domenico
Username MorenoDiDomenico
Uploaded September 22, 2022
Rating 4.5
Size 4,668 Kb
Views 22,264
Do you need developer help for CSS3 Explode 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!

Moreno Di Domenico (MorenoDiDomenico) Script Codes
Create amazing blog posts 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!