feat: add opacity transition to spotify widget

This commit is contained in:
matt1432 2023-08-19 16:59:50 -04:00
parent 1cac40745f
commit f7997e8331
2 changed files with 3 additions and 0 deletions

View file

@ -138,6 +138,7 @@
.player {
margin-top: 6px;
min-height: 220px;
opacity: 0;
}
.slider-box {

View file

@ -332,6 +332,8 @@
(revealer :reveal expand_player
:transition "slidedown"
(box :class "player"
:style "${expand_player == 'true' ? 'opacity: 1; transition: opacity ${anim_duration}' :
'opacity: 0; transition: opacity ${anim_duration}'}"
(playerinfo)
)
)