File tree Expand file tree Collapse file tree 3 files changed +103
-0
lines changed Expand file tree Collapse file tree 3 files changed +103
-0
lines changed 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 name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
+ < title > Document</ title >
8
+ < link rel ="stylesheet " href ="./style.css " />
9
+ </ head >
10
+
11
+ < body >
12
+
13
+ < div class ="container ">
14
+ < div class ="progress-container ">
15
+ < div class ="progress " id ="progress ">
16
+
17
+ </ div >
18
+ < div class ="circle active "> 1</ div >
19
+ < div class ="circle "> 2</ div >
20
+ < div class ="circle "> 3</ div >
21
+ < div class ="circle "> 4</ div >
22
+ </ div >
23
+ </ div >
24
+
25
+ < button class ="btn " id ="prev " disabled > </ button >
26
+ < button class ="btn " id ="next "> </ button >
27
+
28
+ < script src ="./script.js "> </ script >
29
+ </ body >
30
+
31
+ </ html >
Original file line number Diff line number Diff line change
1
+ * {
2
+ margin : 0 ;
3
+ padding : 0 ;
4
+ box-sizing : border-box;
5
+ }
6
+
7
+
8
+
9
+ body {
10
+ display : flex;
11
+ background-color : # f6f7fb ;
12
+ flex-direction : column;
13
+ align-items : center;
14
+ justify-content : center;
15
+ height : 100vh ;
16
+ }
17
+
18
+ .container {
19
+ text-align : center;
20
+ }
21
+
22
+
23
+ .progress-container {
24
+ display : flex;
25
+ justify-content : space-between;
26
+ position : relative;
27
+ margin-bottom : 30px ;
28
+ max-width : 100% ;
29
+ width : 350px ;
30
+ }
31
+
32
+ .progress-container ::before {
33
+ content : '' ;
34
+ background-color : # e0e0e0 ;
35
+ position : absolute;
36
+ top : 50% ;
37
+ left : 0 ;
38
+ height : 4px ;
39
+ width : 100% ;
40
+ z-index : -1 ;
41
+ transform : translateY (-50% );
42
+ }
43
+
44
+
45
+ .progress {
46
+ background-color : # 3498db ;
47
+ position : absolute;
48
+ top : 50% ;
49
+ left : 0 ;
50
+ height : 4px ;
51
+ width : 0% ;
52
+ z-index : -1 ;
53
+ transform : translateY (-50% );
54
+ transition : 0.4s ease;
55
+ }
56
+
57
+ .circle {
58
+ background-color : # fff ;
59
+ color : # 999 ;
60
+ border-radius : 50% ;
61
+ height : 30px ;
62
+ width : 30px ;
63
+ display : flex;
64
+ align-items : center;
65
+ justify-content : center;
66
+ border : 3px solid # 303030 ;
67
+ transition : .4s ease;
68
+ }
69
+
70
+ .circle .active {
71
+ border-color : # 3498db ;
72
+ }
You can’t perform that action at this time.
0 commit comments