Jquery and css3 implement cool and fashionable menu navigation _ jquery

Source: Internet
Author: User
After you click the list chart, the menu items are displayed in the Content Page. When you click the close menu button, the menu items are hidden and the content page is restored to its original position. Today, jquery and css3 bring you a good navigation menu. After you click the list chart, the menu items are displayed in the Content Page. When you click the close menu button, the menu item is hidden and the content page is restored to its original position. View

Source code download

Let's take a look at the implementation code:

Html code:

WIFEO/CODE
Post hoc impie perpetratum quod in aliis quoque iam timebatur, tamquam licentiacrudelitati indulta per suspicionum nebulas aestimati quidam noxii damnabantur.quorum pars necati, alii puniti bonorum multatione actique laribus suis extorresnullo sibi relicto praeter querelas et lacrimas, stipe conlaticia victitabant, etcivili iustoque imperio ad voluntatem converso cruentam, claudebantur opulentaedomus et clarae.

Item 2

Item 3

Item 4

Css code:

.contener{-webkit-perspective:600px;-moz-perspective:600px;-ms-perspective:600px;perspective:600px;top: 0;bottom: 0;left: 0;right:0;position: absolute;margin: 50px;z-index: 2;}#corp_page{top: 0;bottom: 0;left: 0;right:0;position: absolute;background-color:#DC4B39;padding: 20px;-webkit-transform: rotateY( 0deg );-webkit-transition: all .3s;-webkit-transform-origin: 100% 100%;-webkit-transform-style: preserve-3d;-moz-transform: rotateY( 0deg );-moz-transition: all .3s;-moz-transform-origin: 100% 100%;-moz-transform-style: preserve-3d;-ms-transform: rotateY( 0deg );-ms-transition: all .3s;-ms-transform-origin: 100% 100%;-ms-transform-style:;transform: rotateY( 0deg );transition: all .3s;transform-origin: 100% 100%;transform-style: preserve-3d;}.menu{ top:0;bottom:0;left:90px;width: 200px;position: absolute;margin: 5px;display: none;margin-top:50px;background-color:transparent;}

Js Code:

$(document).ready(function () {$('#btn_menu').click(function () {$("#corp_page").css({"-webkit-transform": "rotateY(-20deg)","-webkit-transition": "all .4s linear","-webkit-transform-origin": "100% 100%","-webkit-transform-style": "preserve-3d","-moz-transform": "rotateY(-20deg)","-moz-transition": "all .4s","-moz-transform-origin": "100% 100%","-moz-transform-style": "preserve-3d","-ms-transform": "rotateY(-20deg)","-ms-transition": "all .4s","-ms-transform-origin": "100% 100%","-ms-transform-style": "preserve-3d","transform": "rotateY(-20deg)","transition": "all .4s","transform-origin": "100% 100%","transform-style": "preserve-3d"});$(".menu").delay(170).css({"z-index": "5","-webkit-transition": "all .4s","-moz-transition": "all .4s","-ms-transition": "all .4s","transition": "all .4s"}).fadeIn("fast");});$('#btn_menu_close,#corp_page').click(function () {$(".menu").fadeOut("fast").css({"z-index": "1","-webkit-transition": "all .4s","-moz-transition": "all .4s","-ms-transition": "all .4s","transition": "all .4s"});$("#corp_page").css({"-webkit-transform": "rotateY(0deg)","-webkit-transition": "all .7s linear","-webkit-transform-origin": "100% 100%","-webkit-transform-style": "preserve-3d","-moz-transform": "rotateY(0deg)","-moz-transition": "all .7s","-moz-transform-origin": "100% 100%","-moz-transform-style": "preserve-3d","-ms-transform": "rotateY(0deg)","-ms-transition": "all .7s","-ms-transform-origin": "100% 100%","-ms-transform-style": "preserve-3d","transform": "rotateY(0deg)","transition": "all .7s","transform-origin": "100% 100%","transform-style": "preserve-3d"});});})
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.