-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
185 lines (156 loc) · 2.89 KB
/
style.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
height: 100vh;
}
body {
background-color: black;
font-family: Roboto, Arial, sans-serif;
}
section {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
h1 {
font-size: 32px;
letter-spacing: 1px;
margin: 20px 0;
color: rgb(247, 247, 75);
}
form {
margin: 20px 0;
background-color: rgb(247, 247, 75);
padding: 30px 25px;
border-radius: 5px;
}
form .input-block {
margin-bottom: 20px;
}
form .input-block label {
font-size: 14px;
color: black;
}
form .input-block input {
width: 100%;
display: block;
margin-top: 8px;
padding: 7px;
font-size: 16px;
color: rgb(0, 0, 0);
border-radius: 2px;
border: 1px solid rgb(233, 233, 62);
outline-color: rgb(247, 247, 75);
}
form .btn-login {
display: block;
min-width: 120px;
border: none;
background-color: black;
color: rgb(247, 247, 75);
border-radius: 25px;
margin: auto;
padding: 7px;
}
/******************** APARACIÇÃO DO FORM **********************/
form{
animation-name: fade;
animation-duration: 0.2s;
overflow: hidden;
}
@keyframes fade{
from{
opacity: 0;
transform: scale(0.9);
} to {
opacity: 1;
transform: scale(1);
}
}
/******** CAMPOS DA ESQUERDA PARA A DIREITA ********/
form .input-block:nth-child(1){
animation-name: move;
animation-duration: 500ms;
}
form .input-block:nth-child(2){
animation-name: move;
animation-duration: 400ms;
animation-delay: 150ms;
animation-fill-mode: backwards;
}
form .btn-login{
animation-name: move;
animation-duration: 400ms;
animation-delay: 250ms;
animation-fill-mode: backwards;
}
@keyframes move{
from{
opacity: 0;
transform: translate(-35%);
} to {
opacity: 1;
transform: translate(0%);
}
}
/******** SUMIR COM O FORM AO CLICAR EM LOGIN ********/
.form-hide{
animation: move-down;
animation-duration: 400ms;
animation-fill-mode: forwards;
animation-timing-function: ease-in; /* adicionando timing */
}
@keyframes move-down{
from{
transform: translateY(0);
} to{
transform: translateY(100vh);
}
}
/**************** FORM NO-NO (VIBRANDO) **************/
form.validate-error{
animation: no-no 200ms linear, fade paused;
animation-iteration-count: 2;
}
@keyframes no-no{
0%, 100%{
transform: translateX(0);
}
35%{
transform: translateX(-15%);
}
70%{
transform: translateX(15%);
}
}
/**************** ANIÃMAÇO DOS QUADRADOS ****************/
body{
overflow: hidden;
}
.squares li{
width: 40px;
height: 40px;
background-color: rgb(255, 255, 255, 0.15);
display: block;
position: absolute;
bottom: -40px;
animation: squares 1s infinite alternate;
}
@keyframes squares{
form{
opacity: 0;
transform: translateY(0);
}
50%{
opacity: 1;
}
to {
opacity: 0;
transform: translateY(-900px) rotate(960deg);
}
}