Skip to content

Commit

Permalink
fix(views/lyrics): use scale to make animation smooth (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 authored Apr 23, 2022
1 parent ab85c51 commit 0a1c847
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/views/lyrics.vue
Original file line number Diff line number Diff line change
Expand Up @@ -704,13 +704,13 @@ export default {
span {
opacity: 0.28;
cursor: default;
font-size: 1em;
font-size: 0.8em;
transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
span.translation {
opacity: 0.2;
font-size: 0.95em;
font-size: 0.75em;
}
}
Expand All @@ -722,15 +722,18 @@ export default {
margin-top: 0.1em;
}
.highlight {
transform-origin: center left;
transform: scale(1.05);
}
.highlight span {
opacity: 0.98;
display: inline-block;
font-size: 1.25em;
}
.highlight span.translation {
opacity: 0.65;
font-size: 1.1em;
}
}
Expand Down

0 comments on commit 0a1c847

Please sign in to comment.