-
Notifications
You must be signed in to change notification settings - Fork 1
/
style3.css
134 lines (132 loc) · 3 KB
/
style3.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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
*, *:before, *:after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.nav {
overflow: hidden;
position: absolute;
left: 758px;
top: -545px;
width: auto;
height: auto;
margin-top: -45px;
background: #f0f0f0;
border-radius: 5px;
transform: scale(0.68);
box-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}
.nav__cb {
z-index: -1000;
position: absolute;
left: 0;
top: 0;
opacity: 0;
pointer-events: none;
}
.nav__content {
position: relative;
width: 80px;
height: 100%;
transition: width 1s cubic-bezier(0.49, -0.3, 0.68, 1.23);
}
.nav__cb:checked ~ .nav__content {
transition: width 1s cubic-bezier(0.48, 0.43, 0.29, 1.3);
width: 360px; /*cambia la lughezza*/
}
.nav__items {
position: relative;
width: 1000px;
height: 100%;
padding-left: 20px;/*sposta lescritte più a dx o sx*/
padding-right: 0px;
list-style-type: none;
font-size: 0;
}
.nav__item {
display: inline-block;
vertical-align: top;
width: 90px;
text-align: center;
color: #344752;
font-size: 18px;
line-height: 90px;
font-family: Helvetica, Arial, sans-serif;
font-weight: bold;
perspective: 1000px;
transition: color 0.3s;
cursor: pointer;
}
.nav__item:hover {
color: #9EB3BE;/*colore quando tocchi una scritta*/
}
.nav__item-text {
display: block;
height: 100%;
transform: rotateY(-70deg);
opacity: 0;
transition: transform 0.7s cubic-bezier(0.48, 0.43, 0.7, 2.5), opacity 0.7s;
}
.nav__cb:checked ~ .nav__content .nav__item-text {
transform: rotate(270deg);
opacity: 1;
transition: transform 0.7s cubic-bezier(0.48, 0.43, 0.7, 2.5), opacity 0.2s;
}
.nav__item:nth-child(1) .nav__item-text {
transition-delay: 0.3s;
}
.nav__cb:checked ~ .nav__content .nav__item:nth-child(1) .nav__item-text {
transition-delay: 0s;
}
.nav__item:nth-child(2) .nav__item-text {
transition-delay: 0.2s;
}
.nav__cb:checked ~ .nav__content .nav__item:nth-child(2) .nav__item-text {
transition-delay: 0.1s;
}
.nav__item:nth-child(3) .nav__item-text {
transition-delay: 0.1s;
}
.nav__cb:checked ~ .nav__content .nav__item:nth-child(3) .nav__item-text {
transition-delay: 0.2s;
}
.nav__item:nth-child(4) .nav__item-text {
transition-delay: 0s;
}
.nav__cb:checked ~ .nav__content .nav__item:nth-child(4) .nav__item-text {
transition-delay: 0.3s;
}
.nav__btn {
position: absolute;
right: 0;
top: 0;
width: 70px; /*posizioni di = */
height: 70px;
padding: 36px 18px;
cursor: pointer;
}
.nav__btn:before, .nav__btn:after {
content: "";
display: block;
width: 28px;
height: 4px;
border-radius: 2px;
background: #344752;
transform-origin: 50% 50%;
transition: transform 1s cubic-bezier(0.48, 0.43, 0.29, 1.3), background-color 0.3s;
}
.nav__btn:before {
margin-bottom: 10px;
}
.nav__btn:hover:before, .nav__btn:hover:after {
background: #9EB3BE;
}
.nav__cb:checked ~ .nav__btn:before {
transform: translateY(7px) rotate(-225deg);
}
.nav__cb:checked ~ .nav__btn:after {
transform: translateY(-7px) rotate(225deg);
}
#ruota{
transform: rotate(90deg);
}