Skip to content

Conversation

@THEAbhishekjoshi
Copy link

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