Flod It Menu
How do I make an flod it menu?
Flod It Menu. What is a flod it menu? How do you make a flod it menu? This script and codes were developed by MaCeLMp4 on 16 September 2022, Friday.
Flod It Menu - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Flod It Menu</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <html>
<head> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"> <style type="text/css"> body { background:#666; padding: 0 ; margin: 0 } .phone { width: 304px; height: 544px; padding: 108px 27px 110px 27px; margin: 30px auto; background: url(http://coldman.net/flodit/examples/img/phone.png) no-repeat } .app { background:#0d3d69 url(http://coldman.net/flodit/examples/img/bg.jpg) no-repeat 50% 0; height: 544px; position: relative; } .floditmenu { padding: 0 ; margin: 0 0 0 -30px ; list-style: none ; width: 60px; position: absolute; top:46px; left:50%; } .floditmenu li { height: 60px; background: #fff; border-top: 1px solid #ccc; text-align: center; z-index: 1 } .actionItem { border-radius: 0 0 10px 10px; box-shadow: 0 9px 9px -2px #ccc inset; } .menuIsOpen .actionItem { box-shadow: none } .menuIsOpen li:first-child { box-shadow: 0 9px 9px -2px #ccc inset; } [class^="icon-"], [class*=" icon-"] { display: inline-block; width: 34px; height: 34px; margin-top: 15px; line-height: 14px; vertical-align: text-top; background-image: url("http://coldman.net/flodit/examples/img/icon.png"); background-position: 14px 14px; background-repeat: no-repeat; } /* icons use onli to prev get*/ .icon-heart { background-position: 0 2px; } .icon-comment { background-position: 0px -39px; } .icon-edit { background-position: -4px -91px; } .icon-send { background-position: -2px -147px; } .icon-menu { background-position: 1px -196px; } .downAnimation , .upAnimation { /*box-shadow: 0 4em 5em -4em #ccc inset; */ } @media (max-width: 640px) { .phone { width: auto ; height: 544px; padding:0; margin: 0px auto; background:none } } </style>
</head>
<body> <div class="phone"> <div class="app"> <ul class="floditmenu"> <li> <a href="http://studiomp4.hol.es/" class="icon icon-heart" > </a> </li> <li> <a href="http://studiomp4.hol.es/" class="icon icon-comment" ></a> </li> <li> <a href="http://studiomp4.hol.es/" class="icon icon-edit" ></a> </li> <li> <a href="#" class="icon icon-send" ></a> </li> <li class="actionItem" > <a href="http://studiomp4.hol.es/" class="icon icon-menu"></a> </li> </ul> </div> </div> <script src="https://code.jquery.com/jquery-1.10.2.min.js"></script> <script src="../js/jquery.flodit.js"></script> <script> (function($){ $( document ).ready(function() { $( ".floditmenu" ).floditmenu({perspective:200}); }); })(jQuery); </script>
</body>
</html> <script src="js/index.js"></script>
</body>
</html>
Flod It Menu - Script Codes CSS Codes
.floditmenu {position: relative; top:0px; left:0px; right: 0px; }
.floditmenu li { position: absolute ; left:0px; right: 0px; }
.floditmenu .even {
position: absolute ;
-webkit-transform-origin:50% 0%; -moz-transform-origin:50% 0%; transform-origin:50% 0%;
-webkit-transform: perspective(1000px) rotate3d(1,0,0,90deg); -moz-transform: perspective(1000px) rotate3d(1,0,0,90deg); transform: perspective(1000px) rotate3d(1,0,0,90deg);
}
.floditmenu .odd {
position: absolute ;
-webkit-transform-origin: 50% 100%; -moz-transform-origin: 50% 100%; transform-origin: 50% 100%;
-webkit-transform: perspective(1000px) rotate3d(1,0,0,-90deg); -moz-transform: perspective(1000px) rotate3d(1,0,0,90deg); transform: perspective(1000px) rotate3d(1,0,0,90deg);;
}
.floditmenu.menuIsOpen { /* menu is open now */
}
.menuIsAmimationNow ,
.menuIsAmimationNow { /* menu is amimation now */
}
Flod It Menu - Script Codes JS Codes
/** * version: 1.0.0 * jQuery plugin */
(function ($) { var defaults = { // you can change default settings step : 15, // do n steps in animation, recomendet 25 per 1 sec animationTime : 150, // time to animation perspective : 500, // perspective for corners odd : "odd", // class name for odd element even : "even", // class name for even element actionItem : ".actionItem", // class or id form element who start amination degree : 90, // degree opening recomendet use 90 for full open childrens: "li" // children items tug }, methods = { init : function (options) { var opt = $.extend({}, defaults, options); return this.each(function () { var $this = $(this), currentStep = 0, manuIsOpened = false, actionItem = $(opt.actionItem), el = { even : $this.children(":even").not(actionItem).addClass(opt.even), odd : $this.children(":odd").not(actionItem).addClass(opt.odd), allLI : $(opt.childrens, $this), regItemHeight : $(opt.childrens, $this).eq(0).outerHeight(), degree : opt.degree / opt.step }, animateMenu = function (vector, callback) { (function () { /* animation */ var step = (vector === "down") ? ++currentStep : --currentStep, aminStep = 90 - step * el.degree, curHeight = 0, top = 0, height = 0; el.even.css("-webkit-transform", "perspective(" + opt.perspective + "px) rotate3d(1, 0, 0, -" + aminStep+ "deg)") .css("-moz-transform", "perspective(" + opt.perspective + "px) rotate3d(1, 0, 0, -" + aminStep + "deg)") .css("transform", "perspective(" + opt.perspective + "px) rotate3d(1, 0, 0, -" + aminStep + "deg)"); el.odd.css("-webkit-transform", "perspective(" + opt.perspective + "px) rotate3d(1, 0, 0," + aminStep + "deg)") .css("-moz-transform", "perspective(" + opt.perspective + "px) rotate3d(1, 0, 0," + aminStep + "deg)") .css("transform", "perspective(" + opt.perspective + "px) rotate3d(1, 0, 0," + aminStep + "deg)"); /* get real heigth */ curHeight = (currentStep > 0) ? parseInt(el.allLI[0].getBoundingClientRect().height, 10) : 0; for (var i = 0; i < el.allLI.length; i += 1) { top= (i%2 == 1)? ((curHeight * (i + 1)) - el.regItemHeight ) : (curHeight * i) el.allLI[i].style.top = top+ 'px'; } // recall animation function if (currentStep == opt.step || currentStep == 0) { callback(); //stop amination } else { setTimeout(arguments.callee, opt.animationTime / opt.step); //contionue amination } })(); }; actionItem.on("click", function (e) { if (manuIsOpened) { $this.addClass("menuIsAmimationNow"); animateMenu("up", function () { manuIsOpened = false; $this.removeClass("menuIsAmimationNow"); $this.removeClass("menuIsOpen"); }); } else { $this.addClass("menuIsAmimationNow menuIsAmimationNowDoun"); animateMenu("down", function () { manuIsOpened = true; $this.removeClass("downAnimation menuIsAmimationNowDoun"); $this.addClass("menuIsOpen"); }); } e.preventDefault(); }); }); } }; $.fn.floditmenu = function (method) { if (methods[method]) { return methods[method].apply( this, Array.prototype.slice.call(arguments, 1)); } else if (typeof method === 'object' || !method) { return methods.init.apply(this, arguments); } else { $.error(method + 'not found'); } };
})(jQuery);
Developer | MaCeLMp4 |
Username | MaCeLMp4 |
Uploaded | September 16, 2022 |
Rating | 3 |
Size | 4,046 Kb |
Views | 20,240 |
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 |
Perspective Sidebar | 3,632 Kb |
Image Hover Effects | 6,213 Kb |
Animated Vertical CSS3 Menu | 2,754 Kb |
Google Play Style Menu | 3,774 Kb |
Animated Vertical CSS3 Menu Black | 2,750 Kb |
Timer Tab | 16,031 Kb |
Flexible Calendar V1 | 16,637 Kb |
CSS Only Rotating Menu | 4,748 Kb |
ListView Phone | 3,731 Kb |
CSS3 Awesome Menu Black | 11,880 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 |
P5.js data visualization | Enginarslan | 2,233 Kb |
Modular Flip Card | Bbodine1 | 4,009 Kb |
Greyscale image with filter in CSS3 | NickyCDK | 1,562 Kb |
Drag n Drop | Martin42 | 2,594 Kb |
Weather App 2 | MightyJoeW | 2,877 Kb |
Adding Items | Valhead | 4,008 Kb |
Savemedia1.1 | EdsonAlcala | 2,148 Kb |
TestTube CSS | EZPK | 2,710 Kb |
Flower expansion | Sreucherand | 3,425 Kb |
A Pen by Moeid Saleem | Moeidsaleem | 1,862 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!