File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+
4+ < head >
5+ < meta charset ="UTF-8 ">
6+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
7+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
8+ < title > Something</ title >
9+ < link rel ="stylesheet " href ="./style.css ">
10+ </ head >
11+
12+ < body >
13+ <!-- <div class="container">
14+ <div class="drop large"></div>
15+ <div class="drop medium"></div>
16+ <div class="drop small"></div>
17+ </div> -->
18+
19+ < div class ="container ">
20+ < button class ="btn ">
21+ < span class ="border ">
22+ < span class ="box left-corner "> </ span > < span class ="box right-corner "> </ span >
23+ </ span >
24+ Hover Me
25+ </ button >
26+ </ div >
27+
28+
29+ </ body >
30+
31+ </ html >
Original file line number Diff line number Diff line change 1+ * {
2+ padding : 0 ;
3+ margin : 0 ;
4+ box-sizing : border-box;
5+ }
6+
7+ body {
8+ background-color : # f1f1f1 ;
9+ }
10+
11+ .container {
12+ display : flex;
13+ justify-content : center;
14+ align-items : center;
15+ width : 100% ;
16+ height : 100vh ;
17+ position : relative;
18+
19+ }
20+
21+ .drop {
22+ position : absolute;
23+ border : 1px solid # 222 ;
24+
25+ }
26+
27+ .large {
28+ width : 250px ;
29+ height : 250px ;
30+ top : 30% ;
31+ border-radius : 60% 40% 70% 30% / 63% 30% 70% 37% ;
32+ }
33+
34+ .medium {
35+ width : 150px ;
36+ height : 150px ;
37+ left : 60% ;
38+ border-radius : 36% 64% 36% 64% / 38% 43% 57% 62% ;
39+ }
40+
41+ .small {
42+ width : 60px ;
43+ height : 60px ;
44+ right : 60% ;
45+ border-radius : 58% 42% 63% 37% / 48% 48% 52% 52% ;
46+ bottom : 30% ;
47+ }
48+
49+
50+
51+ .btn {
52+ position : relative;
53+ outline : none;
54+ width : 160px ;
55+ height : 50px ;
56+ border : none;
57+ background-color : # f1f1f1 ;
58+ letter-spacing : 2px ;
59+ text-transform : uppercase;
60+ border : 2px solid # ff3b63 ;
61+ font-size : 1rem ;
62+ font-family : 'Poppins' , sans-serif;
63+ cursor : pointer;
64+ transition : 0.3s ;
65+ }
66+ .btn : hover {
67+ letter-spacing : 3px ;
68+ }
69+ .border {
70+ position : absolute;
71+ top : 50% ;
72+ left : 50% ;
73+ transform : translate (-50% , -50% );
74+ width : 160px ;
75+ height : 50px ;
76+ border : 2px solid # 3641b7 ;
77+ transition : 0.3s ;
78+ }
79+
80+ .btn : hover .border {
81+ width : 170px ;
82+ height : 60px ;
83+ }
84+
85+ .box {
86+ position : absolute;
87+ width : 20px ;
88+ height : 20px ;
89+ background-color : transparent;
90+ border : 2px solid # 3641b7 ;
91+ border-right : transparent;
92+ border-bottom : transparent;
93+ transition : 0.3s ;
94+ }
95+
96+ .left-corner {
97+ top : -2px ;
98+ left : -2px ;
99+ }
100+ .right-corner {
101+ bottom : -2px ;
102+ right : -2px ;
103+ transform : rotate (180deg );
104+ }
105+
106+ .btn : hover .border .left-corner {
107+ transform : translate (-5px , -5px );
108+ }
109+
110+ .btn : hover .border .right-corner {
111+ transform : translate (5px , 5px )rotate (180deg );
112+ }
You can’t perform that action at this time.
0 commit comments