Skip to content

feat: add background image opacity handling on window focus/blur#485

Open
THEAbhishekjoshi wants to merge 1 commit intozombieFox:mainfrom
THEAbhishekjoshi:feature/background-opacity
Open

feat: add background image opacity handling on window focus/blur#485
THEAbhishekjoshi wants to merge 1 commit intozombieFox:mainfrom
THEAbhishekjoshi:feature/background-opacity

Conversation

@THEAbhishekjoshi
Copy link
Copy Markdown

Description

This PR adds support for changing the background image opacity when the browser window loses or gains focus.

On blur: background opacity decreases (according to settings)

On focus: background opacity smoothly transitions back to normal

This helps reduce distraction when the browser is not active and improves overall usability.

Demo
image
image

Related Issue

Closes #484

Notes

Tested locally and working as expected.

Implementation uses window.addEventListener("blur", ...) and window.addEventListener("focus", ...)

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

Successfully merging this pull request may close these issues.

Add option to change Background image opacity when tab is not active

1 participant