-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
78 lines (65 loc) · 1.33 KB
/
main.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
@keyframes bounce{
0%, 20%, 60%, 100%{
-webkit-transform: translateY(0);
transform: translateY(0);
}
40%{
-webkit-transform: translateY(-20px);
transform: translateY(-20px);
}
80%{
-webkit-transform: translateY(-10px);
transform: translateY(-10px);
}
}
.botoes{
text-align: center;
margin-top: 50px;
}
.efeito{
border:none;
color:whitesmoke;
padding:20px;
margin: 20px;
font-size: 24px;
border-radius: 50px;
position: relative;
box-sizing: border-box;
cursor: pointer;
transition: all 400ms ease;
}
.efeito-1{
background: #009c3d;
}
.efeito-1:hover{
background-color: rgba(0, 0, 0, 0);
color: #009c3d;
box-shadow: inset 0 0 0 3px #009c3d;
}
.efeito-2{
background: #f18f01;
}
.efeito-2:hover{
animation: bounce 1s; /* chama o keyframe criado */
}
.efeito-3{
background: #376693;
transform-style: preserve-3d;
}
.efeito-3:after{
top: -100%;
left: 0px;
width: 100%;
padding: 20px;
position: absolute;
background: #3a9999;
border-radius: 50px;
box-sizing: border-box;
content: "Mudou!";
transform-origin: left bottom;
transform: rotateX(90deg);
}
.efeito-3:hover{
transform-origin: center bottom;
transform: rotateX(-90deg) translateY(100%);
}