-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogress.css
More file actions
25 lines (23 loc) · 792 Bytes
/
Copy pathprogress.css
File metadata and controls
25 lines (23 loc) · 792 Bytes
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
.container {
width: 300px;
margin: auto;
border: 1px solid blue;
border-width: 1px 0;
}
.sticky {
width: 30px;
height: 10px;
background-color: red;
position:-webkit-sticky;
position:sticky;
top: 30px;
}
.sticky:nth-of-type(2) { transform: translateX(30px); }
.sticky:nth-of-type(3) { transform: translateX(60px); }
.sticky:nth-of-type(4) { transform: translateX(90px); }
.sticky:nth-of-type(5) { transform: translateX(120px); }
.sticky:nth-of-type(6) { transform: translateX(150px); }
.sticky:nth-of-type(7) { transform: translateX(180px); }
.sticky:nth-of-type(8) { transform: translateX(210px); }
.sticky:nth-of-type(9) { transform: translateX(240px); }
.sticky:nth-of-type(10) { transform: translateX(270px); }