forked from KitoVallim/java-script-frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (71 loc) · 1.52 KB
/
index.html
File metadata and controls
71 lines (71 loc) · 1.52 KB
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
<!doctype html>
<html>
<head>
<title>Menu CSS jQuery</title>
<meta charset="utf-8">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$('#menu ul li').prepend('<span></span>');
$('#menu ul li').each(function(){
var texto= $(this).find('a').text();
$(this).find('span').text(texto);
});
$('#menu ul li').hover(function(){
$(this).find('span').stop().animate({
marginLeft:"-25px"
},400);
},function(){
$(this).find('span').stop().animate({
marginLeft:"0px"
},300);
});
});
</script>
<style>
body{background:black;}
#menu{width:700px;
margin:auto;
margin-right: 700px;
}
#menu ul{list-style:none;
font-size:18px;
font-family:"Hobo Std";
margin:0px;
padding:0px;
height:400px;
width:140px;
overflow:hidden;
}
#menu ul li a, #menu ul li span{width:100px;
padding:10px 20px;
height:18px;
color:#FFFFFF;
background:blue;
text-decoration:none;
overflow:hidden;
text-align:center;
}
#menu ul li span{
display:block;
cursor:pointer;
}
#menu ul li a{
background:url("images/Degrade_img.jpg") repeat-x left bottom;
color:#000000;
height:10px;
}
</style>
</head>
<body>
<div id="menu">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Portifólio</a></li>
<li><a href="#">Localização</a></li>
<li><a href="#">Empresa</a></li>
<li><a href="#">Contato</a></li>
</ul>
</div>
</body>
</html>