GithubHelp home page GithubHelp logo

Comments (11)

Villhellm avatar Villhellm commented on June 26, 2024

I'm currently trying to replicate the blank background, would it be possible for you to open the browser console when that happens to check for errors? I'll leave my window open for the rest of the day to see if I run into the same problem.
The issue with only the first tab actually makes sense. Apparently the new theme logic applies the background to each tab individually, but I missed it because my test instance only has one tab. I'll start working on that one now. In the mean time you can set the theme of those tabs to a theme with the primary-background-color set to transparent.

from lovelace-animated-background.

Villhellm avatar Villhellm commented on June 26, 2024

Actually an easier workaround is to go into raw config mode (or edit your ui-lovelace.yaml if you're in yaml mode) and add background: transparent directly to your view.
Ex:

views:
  - title: test
    background: transparent
    path: test
    badges: []
    cards: []

from lovelace-animated-background.

Villhellm avatar Villhellm commented on June 26, 2024

Okay, the current update should fix the different tab issue.
Please let me know if you have anymore information on the blank background issue. I'll continue to monitor on my end to see if I can replicate it.

from lovelace-animated-background.

jaganath-b avatar jaganath-b commented on June 26, 2024

Thanks @Villhellm ,

Adding the background as transparent worked. I could now see the animated background across other tabs. Regarding the blank screen, animated background stays as long as the screen is active. For instance, if i close the laptop & open it immediately, HA refreshes the page, but the background goes blank. I could see the same behaviour in the mobile app (android) as well.

Here's the Console log from Chrome. I'm not sure if its related. I had to stop the session by closing the laptop and opened it again. Found the following error in console and the background was blank.

[Violation] 'requestAnimationFrame' handler took 72ms
[Violation] Forced reflow while executing JavaScript took 75ms
[Violation] Forced reflow while executing JavaScript took 31ms

from lovelace-animated-background.

Villhellm avatar Villhellm commented on June 26, 2024

I'm sorry, this module is only meant to function as long as the screen is active. Refreshing the page when you reactivate the app/tab is the correct action to take in order to keep it functioning. Please let me know if the issue starts happening when the screen is still active.

from lovelace-animated-background.

jaganath-b avatar jaganath-b commented on June 26, 2024

Ok sure. Just to let you know that it's working perfectly fine in the .107.7 version. I.e when the HA screen refreshes automatically, the background animation is refreshed as well. Issue started after upgrading to .108.3 wherein i had to either reload the url in the browser or close & reopen the mobile app again to see the image.

from lovelace-animated-background.

Villhellm avatar Villhellm commented on June 26, 2024

I had to change the location that the html is rendered because they removed the DOM element I was using in 0.108. I can try tying it to a mutation observer, but you'll have to test it for me because I still can't replicate the issue (I don't currently have a laptop)

from lovelace-animated-background.

jaganath-b avatar jaganath-b commented on June 26, 2024

I just checked it. Still the issue occurs.

from lovelace-animated-background.

Villhellm avatar Villhellm commented on June 26, 2024

I hadn't changed anything yet. I put the changes to test in the refresh-test branch. Please download that version of the js file to test

from lovelace-animated-background.

jaganath-b avatar jaganath-b commented on June 26, 2024

Awesome. It's working now!!!! Thank you very much for your help...

from lovelace-animated-background.

Villhellm avatar Villhellm commented on June 26, 2024

Good 👍 no problem

from lovelace-animated-background.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.