Hot File

Vertical Navigation Menu created with CSS3 and jQuery

View: 2610    Dowload: 0   Comment: 0   Post by: hanhga  
Author: none   Category: References   Fields: Other

8 point/7 review File has been tested

Menu is an integral part of the website, to help you add a menu choice in your website. Today I would like to share a beautiful menu templates are built mainly from CSS3 and jQuery. You can view or download the demo posts directly to your computer before proceeding with each step of this article

Introduction

Menu is an integral part of the website, to help you add a menu choice in your website. Today I would like to share a beautiful menu templates are built mainly from CSS3 and jQuery. You can view or download the demo posts directly to your computer before proceeding with each step of this article

css3, css3 tutorial, jQuery, menu, Vertical Navigation Menu

Step 1: The first thing is that we create a framework for your menu html standards.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<div id="wrapper">
 
    <ul class="menu">
 
        <li class="item1"><a href="#">Friends <span>340</span></a>
 
            <ul>
 
                <li class="subitem1"><a href="#">Cute Kittens <span>14</span></a></li>
 
                <li class="subitem2"><a href="#">Strange "Stuff" <span>6</span></a></li>
 
                <li class="subitem3"><a href="#">Automatic Fails <span>2</span></a></li>
 
            </ul>
 
        </li>
 
        <li class="item2"><a href="#">Videos <span>147</span></a>
 
            <ul>
 
                <li class="subitem1"><a href="#">Cute Kittens <span>14</span></a></li>
 
                <li class="subitem2"><a href="#">Strange "Stuff" <span>6</span></a></li>
 
                <li class="subitem3"><a href="#">Automatic Fails <span>2</span></a></li>
 
            </ul>
 
        </li>
 
        <li class="item3"><a href="#">Galleries <span>340</span></a>
 
            <ul>
 
                <li class="subitem1"><a href="#">Cute Kittens <span>14</span></a></li>
 
                <li class="subitem2"><a href="#">Strange "Stuff" <span>6</span></a></li>
 
                <li class="subitem3"><a href="#">Automatic Fails <span>2</span></a></li>
 
            </ul>
 
        </li>
 
        <li class="item4"><a href="#">Podcasts <span>222</span></a>
 
            <ul>
 
                <li class="subitem1"><a href="#">Cute Kittens <span>14</span></a></li>
 
                <li class="subitem2"><a href="#">Strange "Stuff" <span>6</span></a></li>
 
                <li class="subitem3"><a href="#">Automatic Fails <span>2</span></a></li>
 
            </ul>
 
        </li>
 
        <li class="item5"><a href="#">Robots <span>16</span></a>
 
            <ul>
 
                <li class="subitem1"><a href="#">Cute Kittens <span>14</span></a></li>
 
                <li class="subitem2"><a href="#">Strange "Stuff" <span>6</span></a></li>
 
                <li class="subitem3"><a href="#">Automatic Fails <span>2</span></a></li>
 
            </ul>
 
        </li>
 
    </ul>
 
</div>

Once created, we will have a result like this:

css3, css3 tutorial, jQuery, menu, Vertical Navigation Menu

Step 2: Formatting with CSS

First we will format the menu:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
body {
 
    font-size: 100%;
 
}
 
a {
 
    text-decoration: none;
 
}
 
ul,
 
ul ul {
 
    margin: 0;
 
    padding: 0;
 
    list-style: none;
 
}
 
#wrapper {
 
    width: 220px;
 
    margin: 100px auto;
 
    font-size: 0.8125em;
 
}
 
.menu {
 
    width: auto;
 
    height: auto;
 
    -webkit-box-shadow: 0px 1px 3px 0px rgba(0,0,0,.73), 0px 0px 18px 0px rgba(0,0,0,.13);
 
    -moz-box-shadow: 0px 1px 3px 0px rgba(0,0,0,.73), 0px 0px 18px 0px rgba(0,0,0,.13);
 
    box-shadow: 0px 1px 3px 0px rgba(0,0,0,.73), 0px 0px 18px 0px rgba(0,0,0,.13);
 
}
 
.menu > li > a {
 
    background-color: #616975;
 
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(114, 122, 134)),to(rgb(80, 88, 100)));
 
    background-image: -webkit-linear-gradient(top, rgb(114, 122, 134), rgb(80, 88, 100));
 
    background-image: -moz-linear-gradient(top, rgb(114, 122, 134), rgb(80, 88, 100));
 
    background-image: -o-linear-gradient(top, rgb(114, 122, 134), rgb(80, 88, 100));
 
    background-image: -ms-linear-gradient(top, rgb(114, 122, 134), rgb(80, 88, 100));
 
    background-image: linear-gradient(top, rgb(114, 122, 134), rgb(80, 88, 100));
 
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#727a86', EndColorStr='#505864');
 
    border-bottom: 1px solid #33373d;
 
    -webkit-box-shadow: inset 0px 1px 0px 0px #878e98;
 
    -moz-box-shadow: inset 0px 1px 0px 0px #878e98;
 
    box-shadow: inset 0px 1px 0px 0px #878e98;
 
    width: 100%;
 
    height: 2.75em;
 
    line-height: 2.75em;
 
    text-indent: 2.75em;
 
    display: block;
 
    position: relative;
 
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
 
    font-weight: 600;
 
    color: #fff;
 
    text-shadow: 0px 1px 0px rgba(0,0,0,.5);
 
}

To more clearly, we will insert the color for body

1
2
3
4
5
body {
 
    background:#32373d;
 
}

css3, css3 tutorial, jQuery, menu, Vertical Navigation Menu

Next we will be formatted for the Sub Menu

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.menu ul li a {
 
    background: #fff;
 
    border-bottom: 1px solid #efeff0;
 
    width: 100%;
 
    height: 2.75em;
 
    line-height: 2.75em;
 
    text-indent: 2.75em;
 
    display: block;
 
    position: relative;
 
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
 
    font-size: 0.923em;
 
    font-weight: 400;
 
    color: #878d95;
 
}
 
.menu ul li:last-child a {
 
    border-bottom: 1px solid #33373d;
 
}

Now our menu became better:

css3, css3 tutorial, jQuery, menu, Vertical Navigation Menu

Next we will be formatted for the Hover and Active

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.menu > li > a:hover,
 
.menu > li > a.active {
 
    background-color: #35afe3;
 
    background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(69, 199, 235)),to(rgb(38, 152, 219)));
 
    background-image: -webkit-linear-gradient(top, rgb(69, 199, 235), rgb(38, 152, 219));
 
    background-image: -moz-linear-gradient(top, rgb(69, 199, 235), rgb(38, 152, 219));
 
    background-image: -o-linear-gradient(top, rgb(69, 199, 235), rgb(38, 152, 219));
 
    background-image: -ms-linear-gradient(top, rgb(69, 199, 235), rgb(38, 152, 219));
 
    background-image: linear-gradient(top, rgb(69, 199, 235), rgb(38, 152, 219));
 
    filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#45c7eb', EndColorStr='#2698db');
 
    border-bottom: 1px solid #103c56;
 
    -webkit-box-shadow: inset 0px 1px 0px 0px #6ad2ef;
 
    -moz-box-shadow: inset 0px 1px 0px 0px #6ad2ef;
 
    box-shadow: inset 0px 1px 0px 0px #6ad2ef;
 
}
 
.menu > li > a.active {
 
    border-bottom: 1px solid #1a638f;
 
}

Followed by Menu Icons

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.menu > li > a:before {
 
    content: '';
 
    background-image: url(../images/sprite.png);
 
    background-repeat: no-repeat;
 
    font-size: 36px;
 
    height: 1em;
 
    width: 1em;
 
    position: absolute;
 
    left: 0;
 
    top: 50%;
 
    margin: -.5em 0 0 0;
 
}
 
.item1 > a:before {
 
    background-position: 0 0;
 
}
 
.item2 > a:before {
 
    background-position: -38px 0;
 
}
 
.item3 > a:before {
 
    background-position: 0 -38px;
 
}
 
.item4 > a:before {
 
    background-position: -38px -38px;
 
}
 
.item5 > a:before {
 
    background-position: -76px 0;
 
}

css3, css3 tutorial, jQuery, menu, Vertical Navigation Menu

Next is the Menu Numbers

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.menu > li > a span {
 
    font-size: 0.857em;
 
    display: inline-block;
 
    position: absolute;
 
    right: 1em;
 
    top: 50%;
 
    background: #48515c;
 
    line-height: 1em;
 
    height: 1em;
 
    padding: .4em .6em;
 
    margin: -.8em 0 0 0;
 
    color: #fff;
 
    text-indent: 0;
 
    text-align: center;
 
    -webkit-border-radius: .769em;
 
    -moz-border-radius: .769em;
 
    border-radius: .769em;
 
    -webkit-box-shadow: inset 0px 1px 3px 0px rgba(0, 0, 0, .26), 0px 1px 0px 0px rgba(255, 255, 255, .15);
 
    -moz-box-shadow: inset 0px 1px 3px 0px rgba(0, 0, 0, .26), 0px 1px 0px 0px rgba(255, 255, 255, .15);
 
    box-shadow: inset 0px 1px 3px 0px rgba(0, 0, 0, .26), 0px 1px 0px 0px rgba(255, 255, 255, .15);
 
    text-shadow: 0px 1px 0px rgba(0,0,0,.5);
 
    font-weight: 500;
 
}
 
.menu > li > a:hover span, .menu > li a.active span {
 
    background: #2173a1;
 
}

css3, css3 tutorial, jQuery, menu, Vertical Navigation Menu

Next is the format for the Sub Menu Numbers

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.menu ul > li > a span {
 
    font-size: 0.857em;
 
    display: inline-block;
 
    position: absolute;
 
    right: 1em;
 
    top: 50%; /
 
    background: #fff;
 
    border: 1px solid #d0d0d3;
 
    line-height: 1em;
 
    height: 1em;
 
    padding: .4em .7em;
 
    margin: -.9em 0 0 0;
 
    color: #878d95;
 
    text-indent: 0;
 
    text-align: center;
 
    -webkit-border-radius: .769em;
 
    -moz-border-radius: 769em;
 
    border-radius: 769em;
 
    text-shadow: 0px 0px 0px rgba(255,255,255,.01));
 
}
 
.menu > li > ul li a:before {
 
    content: '<img class="emoji" draggable="false" alt="" src="http://s.w.org/images/core/emoji/72x72/25b6.png">';
 
    font-size: 8px;
 
    color: #bcbcbf;
 
    position: absolute;
 
    width: 1em;
 
    height: 1em;
 
    top: 0;
 
    left: -2.7em;
 
}
 
.menu > li > ul li:hover a,
 
.menu > li > ul li:hover a span,
 
.menu > li > ul li:hover a:before {
 
    color: #32373D;
 
}

css3, css3 tutorial, jQuery, menu, Vertical Navigation Menu

Step 3: the css part is done, we will continue with the jQuery to create effects:
First we will insert the following script snippet right inside the card

1
2
3
<script type="text/javascript" src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
 
<script type="text/javascript" src="scripts.js"></script>

Tạo một file scripts.js sau đó copy đoạn code bên dưới rồi past vào :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<script type="text/javascript">
 
$(function() {
 
    var menu_ul = $('.menu > li > ul'),
 
        menu_a  = $('.menu > li > a');
 
    menu_ul.hide();
 
    menu_a.click(function(e) {
 
        e.preventDefault();
 
        if(!$(this).hasClass('active')) {
 
            menu_a.removeClass('active');
 
            menu_ul.filter(':visible').slideUp('normal');
 
            $(this).addClass('active').next().stop(true,true).slideDown('normal');
 
        } else {
 
            $(this).removeClass('active');
 
            $(this).next().stop(true,true).slideUp('normal');
 
        }
 
    });
 
});
 
</script>

That's it, our menu is completed, if there are any problems in the process of completing the article, you leave a message in the form of comments then, I'll help you finish this article.

Vertical Navigation Menu created with CSS3 and jQuery

Vertical Navigation Menu created with CSS3 and jQuery Posted on 02-07-2015  Menu is an integral part of the website, to help you add a menu choice in your website. Today I would like to share a beautiful menu templates are built mainly from CSS3 and jQuery. You can view or download the demo posts directly to your computer before proceeding with each step of this article 1.1428571428571/10 2610

Comment:

To comment you must be logged in members.

Files with category

  • Instructions for installing and configuring Windows Live Mail on Windows 10 simple

    View: 2825    Download: 0   Comment: 0   Author: none  

    Instructions for installing and configuring Windows Live Mail on Windows 10 simple

    Category: References
    Fields: Other

    0/4 review
    Windows 10 pre-installed Mail application for managing personal email on the device. The latest version of this application but improved a lot and support other email accounts such as Gmail or Yahoo Mail but users almost no "salty" really with this...

  • Step by step instructions to create social networking buttons with CSS3

    View: 1940    Download: 0   Comment: 0   Author: none  

    Step by step instructions to create social networking buttons with CSS3

    Category: References
    Fields: Other

    0.64285714285714/7 review
    CSS3 help web designers have the ability to create buttons (buttons) very nice, today I will share with you two tips decoration for button in your web becomes radiant beauty that no need to use photoshop.

  • You should understand the CSS Box Shadow

    View: 2091    Download: 0   Comment: 0   Author: none  

    You should understand the CSS Box Shadow

    Category: References
    Fields: Other

    1.2083333333333/12 review
    Effects his shadow was introduced in the previous article, however, in this article, I will guide more specific about shadow attributes, you try it with anything. First we try to learn css following paragraph:

  • How to do button movement with beautiful CSS3

    View: 1781    Download: 0   Comment: 0   Author: none  

    How to do button movement with beautiful CSS3

    Category: References
    Fields: Other

    0/5 review
    Previously to create motion effects button, you must draw the button in photoshop, then switched to flash to make it possible to move. But now you need not spend too much time doing it, all because of the emergence of CSS3.

  • Create a dropdown menu with CSS3 effects with beautiful transtions

    View: 2054    Download: 0   Comment: 0   Author: none  

    Create a dropdown menu with CSS3 effects with beautiful transtions

    Category: References
    Fields: Other

    0.40909090909091/11 review
    More of the dropdown menu you want to introduce to you, this will have the effect menu transitions (converted background of menu background from pale to dark). This menu works well on browsers like FF, Chrome, Safary, but unfortunately did not work...

  • How to hack css for all browsers you should know

    View: 1688    Download: 0   Comment: 0   Author: none  

    How to hack css for all browsers you should know

    Category: References
    Fields: Other

    1.5/9 review
    In the process of web design, which makes it the most headaches is how to design web pages that you can run on the browser. Especially when clients use the old as IE6 browser such. However, with this article, you will easily edit interface runs well...

  • Create Accordion with extremely beautiful CSS3

    View: 2115    Download: 0   Comment: 0   Author: none  

    Create Accordion with extremely beautiful CSS3

    Category: References
    Fields: Other

    0.75/6 review
    Accordion is a technique that helps you shortened the content that you want displayed on the website. It is often used for the display of submenus. In addition you can also use it for content, images. Before applying this procedure, you have to use...

  • Create the effect Hovercho images with Webkit and CSS3 is great

    View: 1799    Download: 0   Comment: 0   Author: none  

    Create the effect Hovercho images with Webkit and CSS3 is great

    Category: References
    Fields: Other

    0.9/5 review
    WebKit is one open source application framework provides the necessary components built one for your web browser. Along with CSS3, cả have contributed to very nice effect những previously only using JavaScript or JQuery thực beige.​

 
Newsletter Email

File suggestion for you

File top downloads

logo codetitle
Codetitle.com - library source code to share, download the file to the community
Copyright © 2015. All rights reserved. codetitle.com Develope by Vinagon .Ltd