Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playback status in classname of body for CSS transitions #18

Open
porg opened this issue Oct 26, 2024 · 0 comments
Open

Playback status in classname of body for CSS transitions #18

porg opened this issue Oct 26, 2024 · 0 comments

Comments

@porg
Copy link

porg commented Oct 26, 2024

  • I plan to put album art as the background,
    • which has different appearances (by CSS styles or transitions) depending on the state of the playback

Proposal

  • body get classes like: playback-playing, playback-paused, playback-stopped; pos-start, pos-inbetween, pos-end, pos-undetermined, then I could have differentiated CSS selectors and trigger various CSS styles or transitions, like this:
    • On init with playback-stopped you have the album art fully visible, and a button large and center
    • A soon as you have playback-playing then album art fades ways or almost to black
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant