Skip to content

Commit

Permalink
fix(css): animations
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaraa committed May 27, 2024
1 parent 09b75b8 commit 7145f51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,23 @@ table {
* {
--animation-duration: 0.4s;
-webkit-transition:
all var(--animation-duration),
background-color var(--animation-duration),
opacity var(--animation-duration);
-moz-transition:
all var(--animation-duration),
background-color var(--animation-duration),
opacity var(--animation-duration);
-o-transition:
all var(--animation-duration),
background-color var(--animation-duration),
opacity var(--animation-duration);
-ms-transition:
all var(--animation-duration),
background-color var(--animation-duration),
opacity var(--animation-duration);
transition:
all var(--animation-duration),
background-color var(--animation-duration),
opacity var(--animation-duration);
}
Expand Down
2 changes: 1 addition & 1 deletion static/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ function expand() {
function collapse() {
if (playerEl.classList.contains("exapnded")) {
playerEl.classList.remove("exapnded");
expandedMobilePlayer.classList.add("hidden");
collapsedMobilePlayer.classList.remove("hidden");
expandedMobilePlayer.classList.add("hidden");
}
}

Expand Down
1 change: 0 additions & 1 deletion views/components/player/mobile_player.templ
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ templ mobilePlayer() {
.collapsed {
height: 90px;
max-height: 90px;
transition: max-height .5s;
}
.exapnded {
height: 550px;
Expand Down

0 comments on commit 7145f51

Please sign in to comment.