Skip to content

Commit

Permalink
Updated to fix animation delay issue
Browse files Browse the repository at this point in the history
  • Loading branch information
surfbryce committed May 18, 2023
1 parent 74095e3 commit 85933e8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dist/beautiful-lyrics.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion src/stylings/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@
filter: blur(40px);
z-index: 1;
animation-direction: reverse;
animation-delay: 10s;
}
}

Expand All @@ -153,3 +152,16 @@
transform: rotate(360deg);
}
}

:root {
--beautiful-lyrics-random-degree: 258deg;
}

@keyframes rotate {
0% {
transform: rotate(var(--beautiful-lyrics-random-degree));
}
100% {
transform: rotate(calc(var(--beautiful-lyrics-random-degree) + 360deg));
}
}

0 comments on commit 85933e8

Please sign in to comment.