-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjumping-menu.css
65 lines (56 loc) · 1.06 KB
/
jumping-menu.css
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
body{
margin: 0;
padding: 0;
font-family: arial;
}
ul{
margin: 300px 200px;
padding: 0;
display: flex;
}
ul li{
list-style: none;
padding: 10px 40px;
}
ul li a{
text-decoration: none;
text-transform: uppercase;
font-size: 1.5em;
color: #292929;
position: relative;
transition: .5s;
}
ul li a:before{
content: "";
position: absolute;
width: 100%;
height: 26px;
background: #800080;
transform-style: preserve-3d;
transform: scale(0) rotate(0deg) skew(10deg);
transition: 1.5s cubic-bezier(.43, 1.91, .35, .74);
z-index: -1;
}
ul li:hover a:before{
transform: scale(1.2) rotateY(360deg) skew(10deg);
}
ul li:hover a{
color: #fff;
}
ul li a:after{
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 50px;
height: 50px;
background: #FF00FF;
transform-style: preserve-3d;
transform: translate(-50%, -50%) scale(0);
transition: 1.5s cubic-bezier(.43, 1.91, .35, .74);
z-index: -2;
border-radius: 50%;
}
ul li:hover a:after{
transform: translate(-50%, -50%) scale(1.2);
}