-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
130 lines (121 loc) · 2.37 KB
/
styles.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
*{
margin: 0;
padding: 0;
border-style: border-box;
font-family: 'Open Sans', sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background:url(modal-background.png);
}
p{
text-transform: uppercase;
}
h3{
color: #fff;
position: absolute;
top:30%;
right: 10%;
}
button{
position: absolute;
top:45%;
right:15%;
}
.square{
position: relative;
width: 400px;
height:400px;
display: flex;
justify-content: center;
align-items: center;
}
.square span:nth-child(1)
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 2px solid #fff;
border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
transition: 0.5s;
animation: animate 6s linear infinite;
}
.square:hover span:nth-child(1){
border: none;
background: rgba(0,0,255,0.8);
}
.square span:nth-child(2)
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 2px solid #fff;
border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
transition: 0.5s;
animation: animate 4s linear infinite;
}
.square:hover span:nth-child(2){
border: none;
background: rgba(0,0,255,0.8);
}
.square span:nth-child(3)
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 2px solid #fff;
border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
transition: 0.5s;
animation: animate2 10s linear infinite;
}
.square:hover span:nth-child(3){
border: none;
background: rgba(0,0,255,0.8);
}
@keyframes animate{
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}
@keyframes animate2{
0%{
transform: rotate(360deg);
}
100%{
transform: rotate(0deg);
}
}
.content{
position: relative;
padding: 40px 60px;
color: #fff;
text-align: center;
transition: 0.5s;
z-index: 1000;
}
.content a{
position: relative;
display: inline-block;
margin-top: 10px;
border: 2px solid #fff;
padding: 6px 18px;
text-decoration: none;
color: #fff;
border-radius: 73% 27% 44% 56% / 49% 44% 56% 51%;
}
.content a:hover{
background: #fff;
color: #333;
}