Skip to content

Commit 7252cb3

Browse files
committed
feat: backdrop filter
1 parent 818fc58 commit 7252cb3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/pages/motion/index.module.less

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
position: sticky;
33
top: 0;
44
right: 0;
5-
background-color: rgb(0 0 0 / 20%);
6-
backdrop-filter: blur(5px);
75
z-index: 10;
6+
background-color: rgb(0 0 0 / 20%);
7+
background-image: radial-gradient(transparent 1px, #bbb 1px);
8+
background-size: 4px 4px;
9+
backdrop-filter: blur(1px);
10+
mask: linear-gradient(#000 calc(100% - 30px), #0000);
811

912
ul {
1013
display: flex;
@@ -23,7 +26,7 @@
2326

2427
.navItemActive {
2528
color: #fff;
26-
background-color: #333;
29+
background-color: #724cdb;
2730
}
2831
}
2932

0 commit comments

Comments
 (0)