Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Add Smooth Lyric Animation #1094

Merged
merged 1 commit into from
May 31, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/renderer/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
}

.lyric-line.active .verse.verse-active {
opacity: 1;
animation: lyricVerseAnimation 0.75s ease-in-out forwards;
}

.lyric-line:hover {
Expand All @@ -1703,10 +1703,10 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {

.lyric-line.active {
--bgSpeed: 1s;
opacity: 1;
transform: scale(1);
/*background: var(--keyColor);*/
transition: transform 0.2s var(--appleEase);
animation: lyricVerseAnimation 1s ease-in-out forwards;
}

.lyric-line:not(.active) {
Expand Down Expand Up @@ -1788,6 +1788,16 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb {
display: flex;
}

@keyframes lyricVerseAnimation {
0% {
opacity: 0.6;
}

100% {
opacity: 1;
}
}

@keyframes lyricWaitingLine {
0% {
opacity: 0.25;
Expand Down