1
+ body {
2
+ margin : 0 ;
3
+ padding : 0 ;
4
+ font-family : sans-serif;
5
+ background : # 1f1837 ;
6
+ color : white;
7
+ }
8
+
9
+ .container {
10
+ width : 100vw ;
11
+ height : 100vh ;
12
+ display : flex;
13
+ justify-content : center;
14
+ align-items : center;
15
+ flex-direction : column;
16
+ }
17
+
18
+ .horizontal-overflow-container {
19
+ width : 50% ;
20
+ position : relative;
21
+ margin-bottom : 2rem ;
22
+ padding : 2rem ;
23
+ border : 2px solid # e200b9 ;
24
+ }
25
+
26
+ .horizontal-overflow-content {
27
+ width : 100% ;
28
+ padding : 20px 0px ;
29
+ overflow-x : scroll;
30
+ white-space : nowrap;
31
+ }
32
+
33
+ .horizontal-gradient-left {
34
+ pointer-events : none;
35
+ position : absolute;
36
+ height : 100% ;
37
+ width : 25% ;
38
+ top : 0 ;
39
+ left : 0 ;
40
+ background : linear-gradient (270deg , rgba (255 , 255 , 255 , 0 ) 0% , rgba (226 , 0 , 185 , 1 ) 100% );
41
+ }
42
+
43
+ .horizontal-gradient-right {
44
+ pointer-events : none;
45
+ position : absolute;
46
+ height : 100% ;
47
+ width : 25% ;
48
+ top : 0 ;
49
+ right : 0 ;
50
+ background : linear-gradient (270deg , rgba (226 , 0 , 185 , 1 ) 0% , rgba (255 , 255 , 255 , 0 ) 100% );
51
+ }
52
+
53
+ .vertical-overflow-container {
54
+ position : relative;
55
+ height : 50% ;
56
+ width : 50% ;
57
+ padding : 2rem ;
58
+ border : 2px solid # e200b9 ;
59
+ }
60
+
61
+ .vertical-overflow-content {
62
+ height : 100% ;
63
+ width : 100% ;
64
+ overflow-y : scroll;
65
+ display : flex;
66
+ align-items : center;
67
+ flex-direction : column;
68
+ }
69
+
70
+ .vertical-gradient-top {
71
+ pointer-events : none;
72
+ position : absolute;
73
+ height : 25% ;
74
+ top : 0 ;
75
+ left : 0 ;
76
+ right : 0 ;
77
+ background : linear-gradient (0deg , rgba (255 , 255 , 255 , 0 ) 0% , rgba (226 , 0 , 185 , 1 ) 100% );
78
+ }
79
+
80
+ .vertical-gradient-bottom {
81
+ pointer-events : none;
82
+ position : absolute;
83
+ height : 25% ;
84
+ bottom : 0 ;
85
+ left : 0 ;
86
+ right : 0 ;
87
+ background : linear-gradient (0deg , rgba (226 , 0 , 185 , 1 ) 0% , rgba (255 , 255 , 255 , 0 ) 100% );
88
+ }
0 commit comments