-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
157 lines (140 loc) · 2.72 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
*{
margin: 0px;
padding: 0px;
box-sizing: border-box;
cursor: url(assets/Image/coursor.PNG), pointer;
}
body{
/* display: flex; */
justify-content: center;
align-items: center;
min-height: 100vh;
background: rgb(0, 0, 0);
}
.main{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.squre{
position: relative;
width: 400px;
height: 400px;
display: flex;
justify-content: center;
align-items: center;
}
.squre 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;
}
.squre:hover span:nth-child(1){
border: none;
background: rgba(0, 0, 255, 0.8);
}
.squre 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;
}
.squre:hover span:nth-child(2){
border: none;
background: rgba(0, 0, 255, 0.8);
}
.squre 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;
}
.squre: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);
}
}
.continer{
position: relative;
padding: 40px 60px;
color: #fff;
text-align: center;
transition: 0.5s;
z-index: 1000;
}
.continer a{
position: relative;
display: inline-block;
margin-top: 10px;
border: 2px solid #fff;
padding: 6px 18px;
text-decoration: none;
color: white;
font-weight: 600px;
border-radius: 73% 27% 44% 56% / 49% 44% 56% 51%;
}
.continer a:hover{
background: #fff;
color: black;
transition: 0.5s;
}
/* This is for text typing animation */
.text_animation{
width: 0ch;
color: rgb(124, 202, 22);
overflow: hidden;
white-space: nowrap;
font-size: 40px;
animation: animation 7s steps(37) infinite alternate;
border-right: 3px solid rgb(221, 138, 12);
}
.text_animation p{
position: relative;
top: 0%;
left: 0%;
}
@keyframes animation{
0%{
width: 0ch;
}
50%{
width: 37ch;
}
}
.coursor{
width: 300px;
height: 300px;
background-color: red;
}