Fix opacity mask for unsynced lyrics container
This commit is contained in:
parent
946f4ff306
commit
3675146f1f
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@ const UnsynchronizedLyricsContainer = styled.div<{ $gap: number }>`
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
transform: translateY(-2rem);
|
transform: translateY(-2rem);
|
||||||
|
|
||||||
|
-webkit-mask-image: linear-gradient(
|
||||||
|
180deg,
|
||||||
|
transparent 5%,
|
||||||
|
rgb(0 0 0 / 100%) 20%,
|
||||||
|
rgb(0 0 0 / 100%) 85%,
|
||||||
|
transparent 95%
|
||||||
|
);
|
||||||
|
|
||||||
mask-image: linear-gradient(
|
mask-image: linear-gradient(
|
||||||
180deg,
|
180deg,
|
||||||
transparent 5%,
|
transparent 5%,
|
||||||
|
|
Reference in a new issue