-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscrolly-controls.module.css
More file actions
67 lines (61 loc) · 1.31 KB
/
scrolly-controls.module.css
File metadata and controls
67 lines (61 loc) · 1.31 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
.wrapper {
position: absolute;
width: 100%;
inset: 0;
z-index: 10;
/* border: 1px solid blue; */
pointer-events: none; /* Allow clicks through wrapper */
}
/* .wrapper::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
backdrop-filter: blur(5px);
padding: 20px 0;
mask: linear-gradient(
to right,
rgba(0, 0, 0, 1) 0%,
rgba(0, 0, 0, 0) 200px,
rgba(0, 0, 0, 0) calc(100% - 200px),
rgba(0, 0, 0, 1) 100%
);
pointer-events: none;
} */
.button {
width: 2rem;
height: 2rem;
border-radius: 8px;
display: flex; /* ← Missing this! */
align-items: center;
justify-content: center;
background: rgba(0, 0, 0, 1);
border: none;
color: white;
pointer-events: auto; /* Re-enable clicks on buttons */
}
.btnWrapper {
display: flex;
flex-direction: column;
justify-content: center;
position: absolute;
height: 100%;
opacity: 0;
padding: 0 1rem;
transition: opacity 0.3s ease, transform 0.3s ease;
pointer-events: auto; /* Re-enable clicks on buttons */
}
.btnWrapperLeft {
left: 0rem;
transform: translateX(-100%); /* Start hidden to the left */
}
.btnWrapperRight {
right: 0rem;
transform: translateX(100%); /* Start hidden to the right */
}
.btnWrapperVisible {
opacity: 1;
transform: translateX(0); /* Slide in */
}