Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

歌词在滚动的时候的渐淡消失的效果 #617

Open
listen1 opened this issue Jul 18, 2021 · 3 comments
Open

歌词在滚动的时候的渐淡消失的效果 #617

listen1 opened this issue Jul 18, 2021 · 3 comments

Comments

@listen1
Copy link
Owner

listen1 commented Jul 18, 2021

歌词在滚动的时候,如果能让上方和下方都出现渐淡消失的效果就好了,会更自然一些。

来源:listen1_desktop

@mikelxk
Copy link
Collaborator

mikelxk commented Jul 20, 2021

image
we can add
common.css line 735

.page .playsong-detail .detail-songinfo .lyric p {
  margin: var(--lyric-line-margin) 0 0 0;
  transition: all 0.35s ease-in-out;
  filter:blur(0.75px)
}
.page .playsong-detail .detail-songinfo .lyric p.highlight {
  color: var(--lyric-important-color);
  filter:blur(0);
  font-size: 115%;
}

But I think we should add blur increases just like apple music as it go far from the current playing lyric.
image

@omnusS
Copy link

omnusS commented Nov 28, 2021

这个需要自己添加吗?

@listen1
Copy link
Owner Author

listen1 commented Nov 28, 2021

image we can add common.css line 735

.page .playsong-detail .detail-songinfo .lyric p {
  margin: var(--lyric-line-margin) 0 0 0;
  transition: all 0.35s ease-in-out;
  filter:blur(0.75px)
}
.page .playsong-detail .detail-songinfo .lyric p.highlight {
  color: var(--lyric-important-color);
  filter:blur(0);
  font-size: 115%;
}

But I think we should add blur increases just like apple music as it go far from the current playing lyric. image

for your reference:
https://stackoverflow.com/questions/9525215/using-css-can-you-apply-a-gradient-mask-to-fade-to-the-background-over-text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants