File tree 2 files changed +80
-0
lines changed
2 files changed +80
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 " />
5
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge " />
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
+ < title > Document</ title >
8
+ < link rel ="
stylesheet "
href ="
https://cdn.jsdelivr.net/npm/[email protected] /font/bootstrap-icons.css "
>
9
+ < link rel ="stylesheet " href ="style.css " />
10
+ </ head >
11
+ < body >
12
+ < button >
13
+ < div class ="default-btn ">
14
+ < i class ="bi bi-download "> </ i >
15
+ < span > Download</ span >
16
+ </ div >
17
+ < div class ="hover-btn ">
18
+ < i class ="bi bi-currency-dollar "> </ i >
19
+ < span > For Free</ span >
20
+ </ div >
21
+ </ button >
22
+ </ body >
23
+ </ html >
Original file line number Diff line number Diff line change
1
+ @import url ("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap" );
2
+
3
+ * {
4
+ margin : 0 ;
5
+ padding : 0 ;
6
+ box-sizing : border-box;
7
+ }
8
+
9
+ body {
10
+ height : 100vh ;
11
+ background-color : # 090909 ;
12
+ display : grid;
13
+ place-items : center;
14
+ }
15
+
16
+ button {
17
+ border : 0 ;
18
+ color : white;
19
+ font-size : 1.5rem ;
20
+ font-family : Poppins;
21
+ cursor : pointer;
22
+ }
23
+
24
+ button {
25
+ background-color : hsl (208 , 58% , 50% );
26
+ border-radius : 50px ;
27
+ position : relative;
28
+ overflow : hidden;
29
+ }
30
+
31
+ .default-btn ,
32
+ .hover-btn {
33
+ padding : 12px 24px ;
34
+ border-radius : inherit;
35
+ display : flex;
36
+ justify-content : center;
37
+ align-items : center;
38
+ gap : 16px ;
39
+ text-transform : uppercase;
40
+ transition : 0.4s ease;
41
+ }
42
+
43
+ .hover-btn {
44
+ position : absolute;
45
+ inset : 0 ;
46
+ border-radius : inherit;
47
+ background-color : hsl (208 , 76% , 40% );
48
+ transform : translate (0% , 100% );
49
+ }
50
+
51
+ button : hover .hover-btn {
52
+ transform : translate (0% , 0% );
53
+ }
54
+
55
+ button : hover .default-btn {
56
+ transform : translate (0% , -100% );
57
+ }
You can’t perform that action at this time.
0 commit comments