CSS3 Explode Menu
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 - 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);
Developer | Moreno Di Domenico |
Username | MorenoDiDomenico |
Uploaded | September 22, 2022 |
Rating | 4.5 |
Size | 4,668 Kb |
Views | 22,264 |
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!
Name | Size |
Bootstrap Clean Buttons | 4,469 Kb |
Interactive CSS3 iPhone 6 | 11,365 Kb |
SVG Logo | 2,236 Kb |
Animations | 3,676 Kb |
Orientation example | 2,205 Kb |
Gallery | 4,360 Kb |
JQuery Hmbrgr Plugin | 4,158 Kb |
A Pen by Moreno Di Domenico | 2,096 Kb |
Dependency | 2,098 Kb |
Canvas Wall | 2,909 Kb |
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!
Name | Username | Size |
Wikipedia Viewer | Thalpha | 4,426 Kb |
The Fantastic Mr Fox | MalZiiirA | 10,435 Kb |
Lecture 1 | Law | 0 Kb |
Feedback Page | TessDiNapoli | 2,836 Kb |
Animated Logo | Shakdaniel | 2,672 Kb |
A Pen by Jess | Jessamyne | 5,100 Kb |
Progressively reveal dots on a Bezier curve | GreenSock | 2,489 Kb |
Pomodoro Timer | Sdas13 | 2,900 Kb |
Comment Jquery | SquishyAndroid | 2,421 Kb |
A Pen by Jonas Bjork | Jonasbjork | 3,115 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!