Skip to content
Advertisement

change the background video of the website according to the weather

There was a problem with the above. I want a dynamic video background for a website. It would change exactly what the weather is like outside, so if it rains, it will play a rainy video in the background, if the sun is shining it will be a sunny video and so on. I already have a basic snippet of code that works, but I can only use images, not video.

JavaScript

Anyone have any idea how I could solve this? Thanks for the answers!

Advertisement

Answer

I did something similar but it’s an image instead of video

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement